microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.68k stars 296 forks source link

Launching server using command node.exe failed. #10327

Closed konosubakonoakua closed 1 month ago

konosubakonoakua commented 2 months ago
  1. Connect to ubuntu sersver
  2. open python file
  3. see the error

Workaround:

# I have ~/.local/bin in $PATH
ln -s $(which node) ~/.local/bin/node.exe
joshspicer commented 1 month ago

I believe this is a configuration issue on either your local machine or remote machine, which you seem to solve by installing/placing node on your path? These docs suggest that Pylance should pick up a bundled node executable from VS Code, but from your logs it appears like that setting may have been changed to instead look on the path (per your workaround).

I would suggest engaging with the pylance folks as it seems to either be some assumptions made by that extension, or perhaps configuration on your end that is no longer using their defaults