vscode-eslint-language-server does not work #10171
Replies: 7 comments
-
|
Beta Was this translation helpful? Give feedback.
-
I tried adding the config property but the logs show [[language]]
name = "tsx"
scope = "source.tsx"
injection-regex = "^(tsx)$" # |typescript
file-types = ["tsx"]
roots = []
language-server = { command = "vscode-eslint-language-server", args = ["--stdio"], language-id = "typescriptreact" }
indent = { tab-width = 4, unit = " " }
config = { "workingDirectory" = "./" } |
Beta Was this translation helpful? Give feedback.
-
Experiencing the same issue, I have been digging within the |
Beta Was this translation helpful? Give feedback.
-
Here is a minimal working configuration based on lspconfig but it requires a fix present in #2507: [language-server.eslint]
command = "vscode-eslint-language-server"
args = ["--stdio"]
[language-server.eslint.config]
validate = "on"
experimental = { useFlatConfig = false }
rulesCustomizations = []
run = "onType"
problems = { shortenToSingleLine = false }
nodePath = "" With these settings the eslint language server runs when opening a file without errors. |
Beta Was this translation helpful? Give feedback.
-
It seems that there is an additional problem. It seems that Vscode and vim tend to work cos they provide some hacky work arounds to find workspace directory. In helix, without plugin management, I am not sure what can be done (apart of manually setting workingDirectory path to workspace's directory |
Beta Was this translation helpful? Give feedback.
-
@JeviScript I am working in a monorepo as well and having the same issue. Did you find a better solution to this problem in the meantime? |
Beta Was this translation helpful? Give feedback.
-
I switched to vim xD |
Beta Was this translation helpful? Give feedback.
-
Summary
The eslint language server expects to be passed a
workingDirectory
butnull
was given.Reproduction Steps
I tried this:
hx
I expected this to happen:
The language server could spawn
Instead, this happened:
The language server did not spawn
Helix log
~/.cache/helix/helix.log
Platform
macOS
Terminal Emulator
Iterm2-3.4.16
Helix Version
helix 22.05
Beta Was this translation helpful? Give feedback.
All reactions