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 skips lines of code without knowledge #5966

Open
imvikash opened this issue Nov 8, 2024 · 1 comment
Open

AmazonQ skips lines of code without knowledge #5966

imvikash opened this issue Nov 8, 2024 · 1 comment
Labels
amazonq bug We can reproduce the issue and confirmed it is a bug. codewhisperer

Comments

@imvikash
Copy link

imvikash commented Nov 8, 2024

Problem

When asked to generate code, sometimes Q will write the whole program, but would skip out few lines without knowledge. When asked about it, it simply thinks that the code is complete, but the screen does not display it. Even when asked to re-write it will keep skipping the same lines.
Only way to find what is missing is by asking line by line explanation, where you will see the line that is missing with explanations.

Steps to reproduce the issue

Its incidental and cannot be easily replicated, but I have have seen it more than 10 times out of 30.

  1. Go to Q Chat
  2. Ask a programming question, preferably a large code
  3. Review the code returned to see some lines skipped.
  4. Ask to re-write the code and it will keep skipping.
  5. For the skipped line, ask Q to explain line by line that code block and it will explain it as if it is there and we cannot just see it.

Expected behavior

All lines should be there in the codebase.

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

OS: Linux x64 5.10.227-198.884.### (Mac OS)
Visual Studio Code extension host: 1.87.2
Amazon Q: 1.34.0
node: 18.17.1

@imvikash imvikash added the bug We can reproduce the issue and confirmed it is a bug. label Nov 8, 2024
@dingfeli
Copy link

Hi, is it possible to provide some code examples with which the repro is to be done?

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