-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
vscode-eslint-language-server does not work #3520
Comments
|
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" = "./" } |
Experiencing the same issue, I have been digging within the |
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. |
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 |
@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? |
I switched to vim xD |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
The text was updated successfully, but these errors were encountered: