aws / aws-toolkit-jetbrains

AWS Toolkit for JetBrains - a plugin for interacting with AWS from JetBrains IDEs
https://plugins.jetbrains.com/plugin/11349-aws-toolkit
Apache License 2.0
744 stars 213 forks source link

AWS Builder ID connection not recognised by CodeWhisperer in PyCharm #3721

Closed FilippTrigub closed 1 year ago

FilippTrigub commented 1 year ago

Describe the bug Connection to AWS via AWS Builder ID can be established, but CodeWhisperer does not recoginse it and cannot be startet.

To reproduce

  1. Follow the AWS Builder ID login steps
  2. Check the CodeWhisperer settings or try to start it

Expected behavior It should start, I presume 😆

Screenshots image image image

Your Environment

andrewyuq commented 1 year ago

Hi @FilippTrigub , did you click on the "start" option under the CodeWhisperer node? Screenshot 2023-06-21 at 11 24 27 AM

FilippTrigub commented 1 year ago

Hi @FilippTrigub , did you click on the "start" option under the CodeWhisperer node? Screenshot 2023-06-21 at 11 24 27 AM

Yes

andrewyuq commented 1 year ago

Do you mind sharing a video clip of the whole process/or logs (Turn debug logs on by Help| Diagostic Tools | Debug Log Settings | and put this string software.aws.toolkits.jetbrains.services.codewhisperer into the textbox) and Help | Show Logs in Finder | open the file idea.log and grab the last lines)

FilippTrigub commented 1 year ago

Here are the logs:

2023-07-11 11:10:39,063 [683536604] INFO - #c.i.d.DebugLogManager - Set DEBUG for the following categories: software.aws.toolkits.jetbrains.services.codewhisperer, #software.aws.toolkits.jetbrains.services.codewhisperer 2023-07-11 11:10:40,529 [683538070] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files 2023-07-11 11:10:50,452 [683547993] WARN - #c.i.i.a.s.WaitForContributorsListenerWrapper - Contributor 'ActionSearchEverywhereContributor' did not finish search for 'S' in 3000ms. Maybe it should implement PossibleSlowContributor interface? 2023-07-11 11:10:50,548 [683548089] INFO - #c.i.u.MemTester - not supported: Windows is not supported 2023-07-11 11:10:54,261 [683551802] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files 2023-07-11 11:10:59,834 [683557375] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files 2023-07-11 11:11:38,711 [683596252] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files 2023-07-11 11:11:40,392 [683597933] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files 2023-07-11 11:11:42,819 [683600360] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files 2023-07-11 11:11:43,963 [683601504] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files 2023-07-11 11:13:30,663 [683708204] INFO - software.aws.toolkits.jetbrains.core.credentials.ToolkitAddConnectionDialog - Try to fetch credential with: Modal(loginType=AWS_BUILDER_ID, startUrl=, region=us-east-1) 2023-07-11 11:13:30,665 [683708206] INFO - software.aws.toolkits.jetbrains.core.credentials.ToolkitAuthManager - Token provider NOT_AUTHENTICATED, requesting login

Nothing loaded afterwards.

leigaol commented 1 year ago

Hi @FilippTrigub , I tried to login with AWS Builder ID in a Windows environment with latest PyCharm and AWS Toolkit, I can successfully connect.

I think you need to precisely double click the start button "|> start" text under the CodeWhisperer node. A single click won't popup the connection dialog. Your cursor must hit the area where the green button or the start text is. If the cursor is out of the text area, it won't popup the connection dialog for you.

Let me know if this helps.

FilippTrigub commented 1 year ago

Seems like it was fixed, thanks