Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amazon Q: computeDiffAndRenderOnEditor: Illegal argument: character must be non-negative #6155

Open
ZAKGUN12 opened this issue Dec 5, 2024 · 3 comments
Labels
amazon-q bug We can reproduce the issue and confirmed it is a bug. codewhisperer

Comments

@ZAKGUN12
Copy link

ZAKGUN12 commented Dec 5, 2024

Problem

During Entering instraction for Q it is giving this error code.

Amazon Q: Illegal argument: character must be non-negative

Steps to reproduce the issue

Expected behavior

System details (run AWS: About and/or Amazon Q: About)

  • OS: WSL2
  • Visual Studio Code version: 1.95.3
  • AWS Toolkit version: v.3.37.0
  • Amazon Q version: v.1.39.0

image

@ZAKGUN12 ZAKGUN12 added the bug We can reproduce the issue and confirmed it is a bug. label Dec 5, 2024
@justinmk3
Copy link
Contributor

Thanks for reporting this. Can you provide the Amazon Q logs?

  1. In the vscode command palette, run Amazon Q: View Logs. This reveals the Output panel with Amazon Q Logs selected.
  2. Click the gear icon and choose Debug, then click it again and choose Set As Default.
  3. Perform the steps to reproduce the issue.
  4. Remove any private info from the logs.

@ZAKGUN12
Copy link
Author

ZAKGUN12 commented Dec 6, 2024

2024-12-06 20:01:36.866 [info] inline chat query:
deploying to production needs to requirement approvement which is mentioned in github env configuration "production"
2024-12-06 20:01:36.866 [error] computeDiffAndRenderOnEditor error: Illegal argument: character must be non-negative
2024-12-06 20:01:44.992 [info] inlineQuickPick query is empty
2024-12-06 20:02:34.372 [info] inline chat query:

2024-12-06 20:02:34.372 [error] computeDiffAndRenderOnEditor error: Illegal argument: character must be non-negative
2024-12-06 20:03:50.092 [info] auth: Connection is valid: 3fff39f3-1aa7-4f33-a543-e4640806f293
2024-12-06 20:03:50.092 [info] auth: Updating connection state of 3fff39f3-1aa7-4f33-a543-e4640806f293 to valid
2024-12-06 20:03:51.905 [info] telemetry: sent batch (size=2)
2024-12-06 20:05:38.385 [debug] telemetry: collapsing 1 "aws.amazonq.viewLogs" metrics. key={}
2024-12-06 20:05:38.386 [debug] command: running "aws.amazonq.viewLogs" with arguments: []

@justinmk3 justinmk3 changed the title Amazon Q: Illegal argument: character must be non-negative Amazon Q: computeDiffAndRenderOnEditor: Illegal argument: character must be non-negative Dec 7, 2024
@ZAKGUN12
Copy link
Author

ZAKGUN12 commented Dec 9, 2024

2024-12-09 14:08:46.929 [debug] codewhisperer: sendTelemetryEvent requestID: b1e46d84-61a6-4a08-92a9-c67839e847d5
2024-12-09 14:08:48.765 [info] telemetry: sent batch (size=15)
2024-12-09 14:09:01.636 [info] inline chat query:
npm ERR! A complete log of this run can be found in: npm ERR! /home/runner/.npm/_logs/2024-12-09T08_49_31_012Z-debug.log
2024-12-09 14:09:01.640 [info] auth: Connection is valid: 3fff39f3-1aa7-4f33-a543-e4640806f293
2024-12-09 14:09:01.640 [info] auth: Updating connection state of 3fff39f3-1aa7-4f33-a543-e4640806f293 to valid
2024-12-09 14:09:01.640 [info] request from tab: bd4d3549-4392-45dd-a165-81ae7efe73ed conversationID: undefined request: {
conversationState: {
currentMessage: { userInputMessage: [Object] },
chatTriggerType: 'INLINE_CHAT',
customizationArn: undefined
}
}
2024-12-09 14:09:03.514 [info] response to tab: bd4d3549-4392-45dd-a165-81ae7efe73ed conversationID: e083d303-cb82-4c67-9170-fd5f0694e17b requestID: f55086f2-f6c2-4f95-9d28-d249fca7ef05 metadata: {
httpStatusCode: 200,
requestId: 'f55086f2-f6c2-4f95-9d28-d249fca7ef05',
extendedRequestId: undefined,
cfId: undefined,
attempts: 1,
totalRetryDelay: 0
}
2024-12-09 14:09:22.327 [error] computeDiffAndRenderOnEditor error: Encountered an unexpected error when processing the request, please try again.
2024-12-09 14:09:46.148 [debug] command: running "aws.amazonq.viewLogs" with arguments: []
2024-12-09 14:09:46.148 [debug] telemetry: vscode_executeCommand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
amazon-q bug We can reproduce the issue and confirmed it is a bug. codewhisperer
Projects
None yet
Development

No branches or pull requests

2 participants