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

[Bug report]: Couldn't start client Amazon Q Language Server #5926

Open
Dragon1573 opened this issue Nov 5, 2024 · 2 comments
Open

[Bug report]: Couldn't start client Amazon Q Language Server #5926

Dragon1573 opened this issue Nov 5, 2024 · 2 comments
Labels
amazon-q bug We can reproduce the issue and confirmed it is a bug. network

Comments

@Dragon1573
Copy link

Problem

Steps to reproduce the issue

  1. Install "Amazon Q" plugin in your VSCode instance.
  2. Make sure you have logged in the extension once and keep yourself already logged in.
  3. Restart VSCode instance and waiting for "Amazon Q" active automatically.
  4. Two errors and an information pops up at the bottom right.

image

Expected behavior

There should be no notifications from this plugin.

System details (run AWS: About and/or Amazon Q: About)

  • OS: Windows_NT x64 10.0.22631
  • Visual Studio Code extension host: 1.95.1
  • Amazon Q: 1.33.0
  • node: 20.18.0
  • electron: 32.2.1

Note

I'm behind a proxy provided by Clash for Windows locally. Windows system-level proxy is configured as http://localhost:57890/.

@Dragon1573 Dragon1573 added the bug We can reproduce the issue and confirmed it is a bug. label Nov 5, 2024
@justinmk3
Copy link
Contributor

Can you provide the Amazon Q logs?

  1. In the vscode command palette, run Amazon Q: View Logs. This reveals the Output panel with Amazon Q Logs selected.
  2. Click the gear icon and choose Debug, then click it again and choose Set As Default.
  3. Perform the steps to reproduce the issue.
  4. Remove any private info from the logs.

@Dragon1573
Copy link
Author

Logs are as follows. Private information (seems UUID or something like that) are replaced with *****MASKED*****.

2024-11-06 20:26:14.005 [info] Log level: debug
2024-11-06 20:26:14.005 [debug] getClientId: determined clientId as: *****MASKED*****, process.env clientId was: undefined, stored clientId was: *****MASKED*****
2024-11-06 20:26:14.005 [debug] getClientId: setting clientId in process.env to: *****MASKED*****
2024-11-06 20:26:14.005 [debug] User agent: AmazonQ-For-VSCode/1.33.0 Visual-Studio-Code/1.95.1 ClientId/*****MASKED*****
2024-11-06 20:26:14.005 [info] Telemetry product: Amazon Q For VS Code
2024-11-06 20:26:14.005 [debug] Telemetry is enabled
2024-11-06 20:26:14.005 [debug] telemetry cache not found, skipping
2024-11-06 20:26:14.005 [debug] telemetry: session_start
2024-11-06 20:26:14.005 [info] Telemetry clientId: *****MASKED*****
2024-11-06 20:26:14.005 [info] Telemetry sessionId: *****MASKED*****
2024-11-06 20:26:14.005 [debug] firstStartup: This is not the users first use of the extension. Skipped showing Add Connections page.
2024-11-06 20:26:14.005 [debug] skipping: Settings migration ("aws.codeWhisperer.includeSuggestionsWithCodeReferences" -> "amazonQ.showInlineCodeSuggestionsWithCodeReferences"), (scope: workspaceValue), the old setting is not defined for this scope.
2024-11-06 20:26:14.005 [debug] skipping: Settings migration ("aws.codeWhisperer.includeSuggestionsWithCodeReferences" -> "amazonQ.showInlineCodeSuggestionsWithCodeReferences"), (scope: globalValue), the old setting is not defined for this scope.
2024-11-06 20:26:14.005 [debug] skipping: Settings migration ("aws.codeWhisperer.importRecommendation" -> "amazonQ.importRecommendationForInlineCodeSuggestions"), (scope: workspaceValue), the old setting is not defined for this scope.
2024-11-06 20:26:14.005 [debug] skipping: Settings migration ("aws.codeWhisperer.importRecommendation" -> "amazonQ.importRecommendationForInlineCodeSuggestions"), (scope: globalValue), the old setting is not defined for this scope.
2024-11-06 20:26:14.005 [debug] skipping: Settings migration ("aws.codeWhisperer.shareCodeWhispererContentWithAWS" -> "amazonQ.shareContentWithAWS"), (scope: workspaceValue), the old setting is not defined for this scope.
2024-11-06 20:26:14.005 [debug] skipping: Settings migration ("aws.codeWhisperer.shareCodeWhispererContentWithAWS" -> "amazonQ.shareContentWithAWS"), (scope: globalValue), the old setting is not defined for this scope.
2024-11-06 20:26:14.005 [debug] codewhisperer: new user login, activating inline tutorial. (autotriggerEnabled=undefined; inlineState=undefined)
2024-11-06 20:26:14.036 [debug] SSO token cache: loaded key: *****MASKED*****
2024-11-06 20:26:14.036 [info] current client registration id=*****MASKED*****
    expires at Fri Jan 24 2025 17:04:21 GMT+0800 (中国标准时间)
    key = *****MASKED*****
2024-11-06 20:26:14.036 [info] auth: Connection is valid: *****MASKED*****
2024-11-06 20:26:14.036 [info] auth: Updating connection state of *****MASKED***** to valid
2024-11-06 20:26:14.036 [debug] telemetry: auth_modifyConnection
2024-11-06 20:26:14.036 [info] codewhisperer: active connection changed
2024-11-06 20:26:14.036 [info] secondaryAuth: connectionId=*****MASKED*****, connectionStatus=valid
2024-11-06 20:26:14.036 [info] codewhisperer: connection states
    connection isValid=true,
    connection isValidCodewhispererCoreConnection=true,
    connection isExpired=false,
    secondaryAuth isExpired=false,
    connection isUndefined=false
2024-11-06 20:26:14.370 [info] auth: Connection is valid: *****MASKED*****
2024-11-06 20:26:14.370 [info] auth: Updating connection state of *****MASKED***** to valid
2024-11-06 20:26:14.370 [info] codewhisperer: active connection changed
2024-11-06 20:26:14.373 [debug] auth: SSO registration cache: loaded key: {"startUrl":"https://view.awsapps.com/start","region":"us-east-1","scopes":["codewhisperer:completions","codewhisperer:analysis","codewhisperer:conversations","codewhisperer:transformations","codewhisperer:taskassist"]}
2024-11-06 20:26:14.373 [debug] telemetry: auth_modifyConnection
2024-11-06 20:26:14.376 [debug] amazonq: Fetching feature configs
2024-11-06 20:26:14.376 [debug] amazonq: Fetching feature configs
2024-11-06 20:26:14.376 [debug] command: running "aws.amazonq.refreshConnectionCallback" with arguments: []
2024-11-06 20:26:14.376 [debug] telemetry: vscode_executeCommand
2024-11-06 20:26:14.381 [info] using codewhispererService service configuration: default
2024-11-06 20:26:14.389 [info] auth: Connection is valid: *****MASKED*****
2024-11-06 20:26:14.389 [info] auth: Updating connection state of *****MASKED***** to valid
2024-11-06 20:26:14.391 [debug] auth: SSO registration cache: loaded key: {"startUrl":"https://view.awsapps.com/start","region":"us-east-1","scopes":["codewhisperer:completions","codewhisperer:analysis","codewhisperer:conversations","codewhisperer:transformations","codewhisperer:taskassist"]}
2024-11-06 20:26:14.391 [debug] telemetry: auth_userState
2024-11-06 20:26:14.427 [debug] CWCTelemetryHelper: Initialized new telemetry helper
2024-11-06 20:26:14.427 [info] initialized 'submitFeedback' command with default feedback id: Amazon Q
2024-11-06 20:26:14.429 [debug] command: running "aws.amazonq.viewLogs" with arguments: []
2024-11-06 20:26:14.429 [debug] telemetry: vscode_executeCommand
2024-11-06 20:26:14.430 [debug] telemetry: ide_heartbeat
2024-11-06 20:26:15.357 [debug] telemetry: aws_featureConfig
2024-11-06 20:26:15.357 [debug] telemetry: aws_featureConfig
2024-11-06 20:26:15.357 [debug] telemetry: aws_featureConfig
2024-11-06 20:26:15.357 [info] AB Testing Cohort Assignments [{"feature":"ProjectContextV2","variation":"CONTROL","value":{"stringValue":"CONTROL"}},{"feature":"ViewDiffInChat","variation":"DEFAULT","value":{"stringValue":"DEFAULT"}},{"feature":"NewAutoTriggerUX","variation":"DEFAULT","value":{"stringValue":"DEFAULT"}}]
2024-11-06 20:26:15.357 [debug] CodeWhisperer: Current feature configs: {ProjectContextV2: CONTROL, ViewDiffInChat: DEFAULT, NewAutoTriggerUX: DEFAULT}
2024-11-06 20:26:15.359 [debug] telemetry: aws_featureConfig
2024-11-06 20:26:15.359 [debug] telemetry: aws_featureConfig
2024-11-06 20:26:15.359 [debug] telemetry: aws_featureConfig
2024-11-06 20:26:15.359 [info] AB Testing Cohort Assignments [{"feature":"ProjectContextV2","variation":"CONTROL","value":{"stringValue":"CONTROL"}},{"feature":"ViewDiffInChat","variation":"DEFAULT","value":{"stringValue":"DEFAULT"}},{"feature":"NewAutoTriggerUX","variation":"DEFAULT","value":{"stringValue":"DEFAULT"}}]
2024-11-06 20:26:15.359 [debug] CodeWhisperer: Current feature configs: {ProjectContextV2: CONTROL, ViewDiffInChat: DEFAULT, NewAutoTriggerUX: DEFAULT}
2024-11-06 20:26:19.437 [info] LspController: LSP already installed
2024-11-06 20:26:20.071 [error] LspController: LSP failed to activate Error: Request initialize failed with message: Invalid argument: sessionOptions.intraOpNumThreads must be a number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
amazon-q bug We can reproduce the issue and confirmed it is a bug. network
Projects
None yet
Development

No branches or pull requests

2 participants