-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set runtime dynamically / to system default #1233
Comments
@JakobJingleheimer the settings are managed by VS Code and VS Code itself has no support for variables or $ evaluation. However you should be able to set the value simply to |
That appears to have sort of worked 🙌 In the Output panel for ESLint, it says it's starting the ESLint server with node v15.14.0. But I'm not sure that's actually true: I was originally tipped off to VS Code ESLint using the old version of node when it complained about an unexpected I'm still get that unexpected character parse error. I don't get the error when running eslint via Terminal which is definitely using node v15.14.0. |
@JakobJingleheimer can you provide me with a GitHub repository I can clone that demos this? |
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! |
Using "node" doesn't work for me; I need provide the full absolute path. Note: I'm using WSL, Ubuntu 21.04 |
In WSL you need to set the setting on the WSL side as a machine setting. |
I'm not sure what you mean by "machine setting" |
That is where I set it |
Is node on your path? |
Hmm weird. It all seems to be working now despite me not changing any settings since yesterday. |
ESlint is using VS Code's old, built-in version of NodeJS (v12) as provided by Electron.
I want to use the current version, which is already installed (via nvm).
As the version will change as I update to new releases, I want to specify the system's version of node (eg
which node
).When I run the command
"ESLint: Select Node Runtime"
, the only option is VS Code's built-in.I tried setting
"eslint.runtime": "$(which node)"
insettings.json
, but the eslint server barfs.P.S. I read through the README of this repo, and it provided almost no information about this.
The text was updated successfully, but these errors were encountered: