rescript-vscode icon indicating copy to clipboard operation
rescript-vscode copied to clipboard

Rescript Language Server is unable to find node executable with volta

Open bgenia opened this issue 1 year ago • 3 comments

I'm using volta to manage Node installations and getting this error from Rescript LSP in VSCode logs:

/usr/bin/env: ‘node’: No such file or directory

AFAIK this is a common issue and can be fixed by allowing to configure node executable path.

bgenia avatar Sep 24 '24 17:09 bgenia

I use fnm and I'm also getting this with release 1.60. My $PATH already includes the node executable, so I rolled back to release 1.58 and that fixed it.

jamessouth avatar Dec 31 '24 15:12 jamessouth

Interesting, I don't think there were any related changes between 1.58 and 1.60. Might be worth debugging a bit further.

zth avatar Dec 31 '24 15:12 zth

I just went through the commits since 1.58 hoping to find a smoking gun but nothing stood out.

jamessouth avatar Dec 31 '24 15:12 jamessouth