aws-toolkit-vscode: CodeWhisperer does nothing in my VSCode environment

Problem

CodeWhisperer just flat out doesn’t work for me after configuring it with a Builder ID on VSCode. Q does work fine.

Steps to reproduce the issue

  1. Configure AWS Toolkit with Builder ID - VSCode shows AWS: AWS Builder ID at the bottom with a check mark. Clicking on that shows AWS Builder ID connected to CodeWhisperer
  2. Click on the AWS item on left menu, and select CodeWhisperer - Learn
  3. Select Generate Code Suggestions as you type - get the new window with example code
  4. Hit Enter after line 5 as instructed - nothing happens
  5. Try Alt+C - CW appears to be trying, but a message “No Suggestions from CodeWhisperer” appears and quickly disappears.

Expected behavior

I expected CW to provide a code suggestion as shown in several informational videos on YouTube show

System details (run the AWS: About Toolkit command)

  • OS: Windows 11 Home
  • Visual Studio Code version: Version: 1.85.1 (user setup) Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 Date: 2023-12-13T09:49:37.021Z Electron: 25.9.7 ElectronBuildId: 25551756 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.22631
  • AWS Toolkit version: OS: Windows_NT x64 10.0.22631 Visual Studio Code extension host: 1.85.1 AWS Toolkit: 2.3.0 node: 18.15.0 electron: 25.9.7

About this issue

  • Original URL
  • State: open
  • Created 6 months ago
  • Comments: 17 (10 by maintainers)

Commits related to this issue

Most upvoted comments

OK I have tried the prerelease: OS: Windows_NT x64 10.0.22631 Visual Studio Code extension host: 1.85.1 AWS Toolkit: 2.5.0-7c4e848 node: 18.15.0 electron: 25.9.7

and the behavior has changed, but it still doesn’t work. I enclose the toolkit logs log.txt

I repeated the steps outlined above

OK, sorry for the delay. I installed the private build: OS: Windows_NT x64 10.0.22631 Visual Studio Code extension host: 1.85.2 AWS Toolkit: 2.8.0-dd93682 node: 18.15.0 electron: 25.9.7 on the latest VSCode:

Version: 1.85.2 (user setup) Commit: 8b3775030ed1a69b13e4f4c628c612102e30a681 Date: 2024-01-18T06:40:10.514Z Electron: 25.9.7 ElectronBuildId: 26354273 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.22631

I enclose a zip file with two logs: aws_toolkit_20240129T114516.log contains the results of trying to use the “guided” CodeWHisperer tools aws_toolkit_20240125T135618-1.log contains the results of trying to use CW in a test file, trying to get it to suggest some code. ToolkitLogs.zip

Will do.