Skip to content

WSL integration completely broken due to vscode-server native NodeJS modules #174605

Closed as not planned

Description

Does this issue occur when all extensions are disabled?: Yes (Except WSL)

  • VS Code Version: 1.75.1
  • OS Version: Windows 11 (WSL2)

Steps to Reproduce:

  1. Use WSL extension in VS Code
  2. Use VS Code Server 1.75.1 Linux x64
  3. Try to open terminal in VS Code WSL, it will fail with ...pty.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 93. This version of Node.js requires NODE_MODULE_VERSION 108.
  4. Most editor functionality such as find all/git is broken as well

Proposed Fix:

Synchronize the Node JS version provided with VS Code Server and the Node JS version used to build modules, I confirmed that this issue is fixed locally if I rebuild node-pty and node-spdlog and replace them in .vscode-server/bin/.../node_modules manually.

Activity

  1. aeschli commented on Feb 24, 2023

    @aeschli
    Contributor

    I verified that this works:

    • install VS Code 1.171
    • open a WSL window
    • open a terminal
      Internally the WSL extension uses vscode-server-stable-linux-x64.tar.gz, commit 441438a, which matches your link.

    Are you sure you use the Node executable that is coming along with the code server?

  2. added
    info-needed
    on Feb 24, 2023
  3. vscodenpa commented on Mar 3, 2023

    @vscodenpa

    This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

    Happy Coding!

  4. locked and limited conversation to collaborators on Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

info-needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions