-
Notifications
You must be signed in to change notification settings - Fork 342
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
ESLint client: couldn't create connection to server. #1754
Comments
I had the same issue, I managed to fixed it. The problem is that ESLint does not use the terminal of your default choice and rather is using cmd (on windows/WSL), so while I was using node with Bash/Git for Windows via NVM. cmd didn't have access to node command hence you get The fix was really simple for me, just an install of node.exe via installation file rather than just using NVM. I confirmed by going to cmd and run please let me know if that works for you |
Alternatively you can start VS Code from a command prompt which setups NVM correctly. And another question is why do you need a special node version to be used. Does the default provided by VS Code not work for you? @chrispalmo let me know if that helps. |
Just updated diagnostic info -- I’m using a Mac, MacOS Sonoma 14.2 (23C64), Apple M1 Max. |
I don't, any version that works will do
I don't quite understand what "default provided by VS Code" means. Does vscode ship with a builtin node runtime? If so, the extension doesn't seem to be finding it (it seems to be looking in I don't necessarily need a special version. use |
@chrispalmo you somewhere set |
Something seems off with your settings. If you setup a
|
Got it. Someone added Deleting the property from Thanks Dirk for helping me figure this out :) |
The bit I still don't understand, which stopping me from arriving at a long term solution fix (that doesn't involve breaking the plugin for for every other dev working on the project) is why In both the system terminal, and in the vscode terminal:
Setting
Works fine. |
As I seem to be the only person in the org experiencing this issue, the workaround I have been using is to delete With my limited understanding of how vscode plugins work, I'm unsure if it would make sense for me to also open an issue with https://github.com/microsoft/vscode. Thoughts @dbaeumer? |
@chrispalmo can you try to start VS Code from a terminal where |
Running |
Issue Summary for vscode-eslint
Error Description
While using the ESLint extension in VSCode, the following errors are encountered:
Diagnostic Information
/Users/cp/.npm/bin/node
Steps Taken to Resolve
eslint.nodePath
including empty, specific path and null.n
, updated and verified the Node version.eslint.runtime
to the path of the Node executable.eslint.runtime
to Null: Tried explicitly settingeslint.runtime
to null.Additional Context
n
(version 8.2.0).Conclusion
The issue seems to be a complex interaction between the VSCode ESLint extension, Node.js installation, and possibly VSCode's access to system variables or user settings. Despite multiple troubleshooting steps, the problem persists, indicating a need for direct intervention or guidance from the VSCode or vscode-eslint development team.
The text was updated successfully, but these errors were encountered: