Open brandondahler opened 3 weeks ago
I have enabled debug logs under software.aws.toolkits.jetbrains.services.codewhisperer
and reproduce this issue on my own machine every day or so, reach out to me on slack if there's any realtime debugging desired related to this issue.
Describe the bug With the Amazon Q plugin enabled, I encounter issues where I lose the ability to use the left arrow key, right arrow key, and the tab key multiple times a day. Restarting IntelliJ clears the issue until it is re-encountered. The triggering event appears to be related to typing fast while the autocomplete suggestions popup box is in the process of appearing.
After the editor has gotten into an invalid state, the editors for all open files and even projects are impacted. Additionally, no more AI-generated auto completions will display. After typing enough new text that would normally trigger an autocomplete, the following text is logged despite there not actually being any visible popup (emphasis mine).
The enter and backspace keys are not impacted.
To reproduce
Expected behavior Popup disappears, normal arrow key and tab key usage is restored
Screenshots N/A
Your Environment
Additional context Based on the symptoms and logs, I believe that there is some mechanism that is causing the editor action handlers set in CodeWhispererPopupManager to get into an invalid state where they are refusing to return the normal actions back to the original handlers.