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 Chat Hang #4935

Closed
franckpochet opened this issue May 6, 2024 · 5 comments
Closed

Amazon Q Chat Hang #4935

franckpochet opened this issue May 6, 2024 · 5 comments
Labels
amazonq bug We can reproduce the issue and confirmed it is a bug. pending-release

Comments

@franckpochet
Copy link

AWS Toolkit V3.1.0 is intalled, I'm connected with my builder ID, Codewhisperer works correctly, but often the Amazon Q chat hang when I entered a prompt.

Here the logs of Amazon Q:
2024-05-06 12:26:10.777 [info] current client registration id=xxx
expires at Tue Jul 30 2024 18:54:26 GMT+0200 (Central European Summer Time),
key =xxx

OS: Windows_NT x64 10.0.22631
Visual Studio Code extension host: 1.89.0
Amazon Q: 1.1.0
node: 18.18.2
electron: 28.2.8

@franckpochet franckpochet added the bug We can reproduce the issue and confirmed it is a bug. label May 6, 2024
@Tagi3d
Copy link

Tagi3d commented May 6, 2024

+1

@justinmk3
Copy link
Contributor

Does this happen while viewing typescript files? Could be related/same as #4810

@franckpochet
Copy link
Author

No, is with a JS file but I enter a question directly in the prompt and nothing happen at all except showing me the prompt in blue I just entered, but then the editbox is frozen, I couldn't do somthing else and it never anwsered.
As I past in my question, the Q logs just show that the connection exists and still valid.
No error, nothing...

justinmk3 pushed a commit that referenced this issue May 7, 2024
Problem
Q chat may hang when processing fragments of ts/js code. The
Tsx.findNames and Tsx.findNamesWithInExtent functions hang (Promise does
not resolve). These functions invoke WASM/rust code.

- #4935
- #4810

Solution
Remove uses of Tsx.findNames and Tsx.findNamesWithInExtent.

The fully qualified names (FQN) library is used to help service build
prompts with variable names in user's IDE to reduce hallucinations, but
they are not required for normal functionality.
@justinmk3
Copy link
Contributor

Amazon Q 1.3.0 includes a (potential) fix for this. If the issue still occurs with the latest version of Amazon Q, we will need more details about the specific steps that reproduce the issue.

@franckpochet
Copy link
Author

Just open VSCode with AWS Toolkit 3.2.0 and ASW Q 1.3.0, and I copnfirm it works.

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. pending-release
Projects
None yet
Development

No branches or pull requests

3 participants