Skip to content

Amazon Q Language Server fails to start: "LSP failed to activate... initialize failed... The specified module could not be found." #6466

@naeem-zenkoders

Description

@naeem-zenkoders

Problem

starting of extension shows some errors:

2025-01-30 16:18:31.091 [info] LspController: LSP already installed
2025-01-30 16:18:31.467 [info] [Info  - 4:18:31 PM] LSP server starts
2025-01-30 16:18:32.361 [info] [Error - 4:18:32 PM] Server initialization failed.
2025-01-30 16:18:32.361 [info]   Message: Request initialize failed with message: The specified module could not be found.
\\?\c:\Users\naeem\.vscode\extensions\amazonwebservices.amazon-q-vscode-1.44.0\resources\qserver\dist\bin\napi-v3\win32\x64\onnxruntime_binding.node
  Code: -32603 
2025-01-30 16:18:32.363 [info] [Error - 4:18:32 PM] Starting client failed
2025-01-30 16:18:32.363 [info]   Message: Request initialize failed with message: The specified module could not be found.
\\?\c:\Users\naeem\.vscode\extensions\amazonwebservices.amazon-q-vscode-1.44.0\resources\qserver\dist\bin\napi-v3\win32\x64\onnxruntime_binding.node
  Code: -32603 
2025-01-30 16:18:32.364 [error] LspController: LSP failed to activate Error: Request initialize failed with message: The specified module could not be found.
\\?\c:\Users\naeem\.vscode\extensions\amazonwebservices.amazon-q-vscode-1.44.0\resources\qserver\dist\bin\napi-v3\win32\x64\onnxruntime_binding.node
2025-01-30 16:18:32.364 [info] [Error - 4:18:32 PM] Unhandled exception: Cannot access 'ONNX_NODE' before initialization
ReferenceError: Cannot access 'ONNX_NODE' before initialization
    at c:\Users\naeem\.vscode\extensions\amazonwebservices.amazon-q-vscode-1.44.0\resources\qserver\dist\extension.js:418:23585
2025-01-30 16:23:25.617 [info] telemetry: sent batch (size=8)

Steps to reproduce the issue

when starting VS Code IDE.

Expected behavior

should start normally.

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

Amazon Q extension

  • OS: Windows 11
  • Visual Studio Code version: 1.96.4
  • AWS Toolkit version:
  • Amazon Q version:
    OS: Windows_NT x64 10.0.26100
    Visual Studio Code extension host: 1.96.4
    Amazon Q: 1.44.0
    node: 20.18.1
    electron: 32.2.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    amazon-qbugWe can reproduce the issue and confirmed it is a bug.codewhispererlsppartner-teamTriggers issue routing to owner team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions