Closed romanholidaypancakes closed 1 year ago
This should be the current behavior. If it's not auto-connecting, the logs might provide a clue.
Can you provide the logs (check that private info is removed)?
AWS: View Toolkit Logs
command to get the logs.I need to click on the AWS Extension button.
2023-04-20 10:22:50 [ERROR]: log level: debug
2023-04-20 10:22:50 [DEBUG]: Logging started: file:///c%3A/Users/ttttttasdasd/AppData/Roaming/Code/logs/20230413T112817/window1/exthost/amazonwebservices.aws-toolkit-vscode/aws_toolkit_20230420T102250.log
2023-04-20 10:22:50 [INFO]: endpoints: retrieving AWS endpoints data
2023-04-20 10:22:50 [VERBOSE]: loading file resource: "c:\Users\ttttttasdasd\.vscode\extensions\amazonwebservices.aws-toolkit-vscode-1.69.0\resources\endpoints.json"
2023-04-20 10:22:50 [INFO]: OS: Windows_NT x64 10.0.19044
2023-04-20 10:22:50 [INFO]: Visual Studio Code extension host: 1.77.3
2023-04-20 10:22:50 [INFO]: AWS Toolkit: 1.69.0
2023-04-20 10:22:50 [INFO]: node: 16.14.2
2023-04-20 10:22:50 [INFO]: electron: 19.1.11
2023-04-20 10:22:50 [INFO]: telemetry cache not found: 'c:\Users\ttttttasdasd\AppData\Roaming\Code\User\globalStorage\amazonwebservices.aws-toolkit-vscode\telemetryCache'
2023-04-20 10:22:50 [VERBOSE]: downloading: https://api.github.com/repos/devfile/api/releases/latest
2023-04-20 10:22:50 [DEBUG]: codecatalyst: DevEnvClient skipped (local)
2023-04-20 10:22:50 [VERBOSE]: codecatalyst: not a devenv, getThisDevEnv() returned empty
2023-04-20 10:22:51 [VERBOSE]: downloading: https://idetoolkits.amazonwebservices.com/endpoints.json
2023-04-20 10:22:52 [VERBOSE]: downloaded: https://api.github.com/repos/devfile/api/releases/latest
2023-04-20 10:22:52 [VERBOSE]: loading file resource: "c:\Users\ttttttasdasd\AppData\Roaming\Code\User\globalStorage\amazonwebservices.aws-toolkit-vscode\sam.schema.json"
2023-04-20 10:22:53 [VERBOSE]: downloaded: https://idetoolkits.amazonwebservices.com/endpoints.json
2023-04-20 10:22:53 [VERBOSE]: Refreshing AWS Explorer due to Region Provider updates
2023-04-20 10:22:55 [VERBOSE]: No E-Tag match. Downloaded content from: https://raw.githubusercontent.com/aws/serverless-application-model/main/samtranslator/schema/schema.json
2023-04-20 10:22:55 [VERBOSE]: loading file resource: "c:\Users\ttttttasdasd\AppData\Roaming\Code\User\globalStorage\amazonwebservices.aws-toolkit-vscode\sam.schema.json"
2023-04-20 10:22:56 [DEBUG]: command: running "aws.codeWhisperer.refresh"
2023-04-20 10:22:56 [DEBUG]: command: running "aws.codeWhisperer.refreshRootNode"
2023-04-20 10:22:56 [DEBUG]: command: running "aws.codeWhisperer.refreshStatusBar"
2023-04-20 10:22:56 [VERBOSE]: E-Tag, W/"8d98f6c5c3a34de16898833a5d43ecfc74718e5e92942c7005c525674e76543f", matched. No content downloaded from: https://raw.githubusercontent.com/aws/serverless-application-model/main/samtranslator/schema/schema.json
2023-04-20 10:22:56 [VERBOSE]: loading file resource: "c:\Users\ttttttasdasd\AppData\Roaming\Code\User\globalStorage\amazonwebservices.aws-toolkit-vscode\devfile.schema.json"
2023-04-20 10:22:57 [DEBUG]: schema service: handle yaml mapping: [removed] -> file:///d%3A/gitea/tttttt/thirdParty/protobuf-3.6.x/appveyor.yml
2023-04-20 10:22:57 [DEBUG]: Activating extension: redhat.vscode-yaml
2023-04-20 10:22:57 [DEBUG]: Extension activated: redhat.vscode-yaml
2023-04-20 10:22:57 [DEBUG]: schema service: handle yaml mapping: [removed] -> file:///d%3A/gitea/ttttttasdasd/thirdParty/protobuf-3.6.x/.travis.yml
2023-04-20 10:23:12 [DEBUG]: command: running "aws.codeWhisperer.refreshStatusBar"
2023-04-20 10:23:12 [DEBUG]: commands: skipped telemetry for "aws.codeWhisperer.refreshStatusBar"
2023-04-20 10:23:23 [DEBUG]: command: running "aws.codeWhisperer.refreshStatusBar"
2023-04-20 10:23:23 [DEBUG]: commands: skipped telemetry for "aws.codeWhisperer.refreshStatusBar"
2023-04-20 10:23:32 [DEBUG]: command: running "aws.codeWhisperer.refreshStatusBar"
2023-04-20 10:23:32 [DEBUG]: commands: skipped telemetry for "aws.codeWhisperer.refreshStatusBar"
It will connect immediately when I click the button.
2023-04-20 10:25:26 [DEBUG]: command: running "aws.codeWhisperer.reconnect"
2023-04-20 10:25:35 [DEBUG]: command: running "aws.codeWhisperer.reconnect"
2023-04-20 10:25:35 [DEBUG]: commands: skipped telemetry for "aws.codeWhisperer.reconnect"
2023-04-20 10:25:42 [DEBUG]: SSO token cache: load succeeded for key 'https://view.awsapps.com/start?scopes=codecatalyst:read_write,codewhisperer:analysis,codewhisperer:completions'
2023-04-20 10:25:42 [DEBUG]: API request (oidc.us-east-1.amazonaws.com /token): {
clientId: 'ASDA',
clientSecret: '[omitted]',
accessToken: '[omitted]',
refreshToken: '[omitted]',
expiresAt: 2023-xasada,
grantType: 'refresh_token'
}
2023-04-20 10:25:44 [DEBUG]: API response (oidc.us-east-1.amazonaws.com /token): {
'$metadata': {
httpStatusCode: 200,
requestId: 'ASDASD',
extendedRequestId: undefined,
cfId: undefined
},
accessToken: '[omitted]',
expiresIn: 3600,
refreshToken: '[omitted]',
tokenType: 'Bearer'
}
2023-04-20 10:25:44 [DEBUG]: SSO token cache: save succeeded for key 'https://view.awsapps.com/start?scopes=codecatalyst:read_write,codewhisperer:analysis,codewhisperer:completions'
2023-04-20 10:25:44 [INFO]: codecatalyst: reconnect: onDidChangeActiveConnection: startUrl=https://view.awsapps.com/start
2023-04-20 10:25:44 [INFO]: codecatalyst: attempting to poll dev environments
2023-04-20 10:25:44 [DEBUG]: command: running "aws.refreshAwsExplorerNode" with arguments [[object Object]]
2023-04-20 10:25:44 [DEBUG]: command: running "aws.codeWhisperer.refresh"
2023-04-20 10:25:44 [DEBUG]: command: running "aws.codeWhisperer.refreshRootNode"
2023-04-20 10:25:44 [DEBUG]: command: running "aws.codeWhisperer.refreshStatusBar"
2023-04-20 10:25:44 [DEBUG]: command: running "aws.codeWhisperer.updateReferenceLog"
2023-04-20 10:25:44 [DEBUG]: commands: skipped telemetry for "aws.codeWhisperer.refresh"
2023-04-20 10:25:44 [DEBUG]: commands: skipped telemetry for "aws.codeWhisperer.refreshRootNode"
2023-04-20 10:25:44 [DEBUG]: commands: skipped telemetry for "aws.codeWhisperer.refreshStatusBar"
2023-04-20 10:25:44 [DEBUG]: command: running "aws.codeWhisperer.refresh"
2023-04-20 10:25:44 [DEBUG]: command: running "aws.codeWhisperer.refreshRootNode"
2023-04-20 10:25:44 [DEBUG]: command: running "aws.codeWhisperer.refreshStatusBar"
2023-04-20 10:25:44 [DEBUG]: command: running "aws.codeWhisperer.updateReferenceLog"
2023-04-20 10:25:44 [DEBUG]: commands: skipped telemetry for "aws.codeWhisperer.refresh"
2023-04-20 10:25:44 [DEBUG]: commands: skipped telemetry for "aws.codeWhisperer.refreshRootNode"
2023-04-20 10:25:44 [DEBUG]: commands: skipped telemetry for "aws.codeWhisperer.refreshStatusBar"
2023-04-20 10:25:44 [DEBUG]: commands: skipped telemetry for "aws.codeWhisperer.updateReferenceLog"
2023-04-20 10:25:47 [DEBUG]: command: running "aws.codeWhisperer.refreshStatusBar"
2023-04-20 10:25:47 [DEBUG]: commands: skipped telemetry for "aws.codeWhisperer.refreshStatusBar"
2023-04-20 10:25:49 [DEBUG]: command: running "aws.codeWhisperer.refreshStatusBar"
2023-04-20 10:25:49 [DEBUG]: commands: skipped telemetry for "aws.codeWhisperer.refreshStatusBar"
I need to click on the AWS Extension button.
Ok, yes, this is a known issue for CodeWhisperer features. We're working on it. https://github.com/aws/aws-toolkit-vscode/pull/3359
Thanks for the report!
Same issue for me. Code Whisperer does not start automatically, if I never hit the AWS button, Code Whisperer never connects :(
Fixed in v1.70.0
Problem
currently, we must manually connect the aws id
Expected behavior