Skip to content

Failed to load native module: pty.node #300855

@tg73

Description

@tg73
Failed to load native module: pty.node, checked: build/Release, build/Debug, prebuilds/linux-x64: Error: Cannot find module './prebuilds/linux-x64/pty.node' Require stack:
  • Copilot Chat Extension Version: 0.39.0
  • VS Code Version:
    Version: 1.111.0 (user setup)
    Commit: ce099c1
    Date: 2026-03-06T23:06:10Z
    Electron: 39.6.0
    ElectronBuildId: 13330601
    Chromium: 142.0.7444.265
    Node.js: 22.22.0
    V8: 14.2.231.22-electron.0
    OS: Windows_NT x64 10.0.26100
  • OS Version: Win 11, running vscode on WSL2 Ubuntu
  • Feature (e.g. agent/edit/ask mode): everything, the extension is borked
  • Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): n/a
  • Logs:

Steps to Reproduce:

  1. Try to issue any request, get messages like:
Cannot find module '/home/xxx/.vscode-server/extensions/github.copilot-chat-0.38.2/dist/tikTokenizerWorker.js' (at tsx element R0)
  1. Ensure vscode is fully updated
  2. Close all vscode instances
  3. from wsl shell, rm -rf .vscode-server/
  4. run up vscode in windows, connect to WSL
  5. Check features in Extension info:
Image

Retried a few times, same outcome.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions