-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[windows] Eslint Lsp fail to load #19709
Comments
Having the same issue on Mac. No out directory in vscode-eslint\server |
Same on
|
This comment was marked as spam.
This comment was marked as spam.
Fix on macos |
Unfortunately your fix does not work for me:
|
Same problem on Fedora 41, Zed 0.162.5. There's nothing under Edit: I found the solution. Check your Upon reading the log, it seems like it failed to fetch the eslint module because this link is just broken:
So what you need to do is to go to this link instead: https://codeload.github.com/microsoft/vscode-eslint/tar.gz/release/2.4.4 and download the Go to Rename the |
Works even if your folder isn't empty, just delete the folder and paste the new one in there |
Hey guys, can you retry with Zed Preview 175.3 or a the latest stable? This might have been fixed already. |
Sorry, it did not:
error:
|
Hi, thank you for your repsonse, what happens if you delete thev vscode-eslint-2.4.4 folder at ~/Library/Application Support/Zed/languages/eslint/vscode-eslint-2.4.4, and restart zed? |
Hi, i install from scratch Zed 0.174.7, and again get the error Language server error: eslint
oneshot canceled
-- stderr--
node:internal/modules/cjs/loader:1080
throw err;
^
Error: Cannot find module '/Users/feelsbadfella/Library/Application Support/Zed/languages/eslint/vscode-eslint-2.4.4/vscode-eslint/server/out/eslintServer.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.17.1 |
Hi @devzeth, also on my side in a typescript project, i got the same error in zed Language server error: eslint
oneshot canceled
-- stderr--
node:internal/modules/cjs/loader:1228
throw err;
^
Error: Cannot find module '/Users/.../Library/Application Support/Zed/languages/eslint/vscode-eslint-2.4.4/vscode-eslint/server/out/eslintServer.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v20.18.0 My settings: {
"telemetry": {
"metrics": false
},
"ui_font_size": 16,
"buffer_font_size": 16,
"vim_mode": true,
"use_smartcase_search": true,
"vim": {
"toggle_relative_line_numbers": true,
"highlight_on_yank_duration": 500,
"use_smartcase_find": true
},
"outline_panel": {
"default_width": 500
},
"toggle_relative_line_numbers": true,
"theme": {
"mode": "dark",
"light": "One Light",
"dark": "One Dark"
},
"inlay_hints": {
"enabled": true
},
"format_on_save": "language_server",
"terminal": {
"font_family": "MesloLGS Nerd Font"
},
"languages": {
"JavaScript": {
"format_on_save": "language_server",
"code_actions_on_format": {
"source.fixAll.eslint": true
}
},
"TypeScript": {
"format_on_save": "language_server",
"code_actions_on_format": {
"source.fixAll.eslint": true
}
}
},
"base_keymap": "JetBrains",
"buffer_line_height": "comfortable",
"confirm_quit": false
} Would love to see a fix. For now i will try the mentioned workaround Update: I tried the workaround on my mac
Thanks |
Check for existing issues
Describe the bug / provide steps to reproduce it
Language server error: eslint
oneshot canceled
-- stderr--
node:internal/modules/cjs/loader:1222
throw err;
^
Error: Cannot find module 'C:\Users\79918\AppData\Local\Zed\languages\eslint\vscode-eslint-2.4.4\vscode-eslint\server\out\eslintServer.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1219:15)
at Module._load (node:internal/modules/cjs/loader:1045:27)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:158:5)
at node:internal/main/run_main_module:30:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v22.5.1
i checked my file folder, there is no 'out' in vscode-eslint\server
Environment
windows 11 powershell
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: