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

amazonq: Illegal argument: character must be non-negative #5737

Open
ege0zcan opened this issue Oct 7, 2024 · 1 comment
Open

amazonq: Illegal argument: character must be non-negative #5737

ege0zcan opened this issue Oct 7, 2024 · 1 comment
Labels
amazonq bug We can reproduce the issue and confirmed it is a bug. codewhisperer

Comments

@ege0zcan
Copy link

ege0zcan commented Oct 7, 2024

Problem

When trying to make a code selection from my IDE and send it to Q, if my selection reaches the end of the file, then the chat request doesn't happen due to an error

Kapture.2024-10-07.at.14.29.11.mp4

Steps to reproduce the issue

  • Open the text editor, click on any line to place the cursor
  • Press CMD + Shift + Down Arrow to select contents from the cursor location to the end of the file
  • Either use send to prompt or type a message in the Q panel
  • You get the error:
An error occurred while processing your request.
This error is reported to the team automatically. We will attempt to fix it as soon as possible.

Details: Illegal argument: character must be non-negative

Expected behavior

  • There shouldn't be any error when making the request

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

OS: Amazon Linux 2 (reproducible on MacOS as well)
Visual Studio Code extension host: 1.94.0
Amazon Q: 1.28.0
node: 20.16.0

@ege0zcan ege0zcan added the bug We can reproduce the issue and confirmed it is a bug. label Oct 7, 2024
@andrewyuq
Copy link
Contributor

Hi, service team returned back saying that we can’t reproduce the issue. If you still see the problem, we will need the problematic examples.

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

No branches or pull requests

3 participants