-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
No diagnostics for vscode-langservers-extracted #5547
Comments
The log you provided seems to have an error on the language server side |
Thanks for taking a look. I’ve seen the troubleshooting steps, here are the results for the health check:
|
I have installed
I don't think you have them installed globally 'properly', delete everything you have and try again, note mine are not in my home directory but What do you get with
In the terminal you should be able to type |
Thanks for taking a look. Yes, the executables are in the $PATH and I get output. And I already uninstalled the langservers-extracted locally and reinstalled them globally, with the exact same result. Archseer is right, the language server itself throws errors pointing to its own files. Which doesn’t make much sense, because I have installed them several times from the same source as everybody else. And I had the same servers installed before for Neovim and they worked. But then again we already ruled out Helix as the problem because error points to the server. None of this makes any sense. Anyway, I just now removed the path to the local servers from .bashrc, restarted terminal and installed langservers globally again, with the same result, no diagnostic, no autocompletion, same errors, but language servers connected. outputs:
|
|
Hmm, you could be on to something. I’m on Fedora 37 and my node version is |
It could be it! You might be able to use an older version with |
Thanks, nvm works like a charm in my case. Installed and used the 16 version of nodejs, but exact same errors. Seems like node is not the culprit. |
You could try asking for help at https://github.com/hrsh7th/vscode-langservers-extracted , it seems the maintainer has modified things slightly from the vanilla VS Code install, so maybe he could shed some light on it. |
Found this thread today. This may be a bug in vscode-langservers-extracted. It could be a separate package such as vscode-html-langserver-extracted. (not yet at the moment). |
I found the cause, You should send
|
@hrsh7th Thank you. So after reading this I added |
@luetage You are not the only one with the issue, but maybe nobody is reporting it. I tried:
The validation works, but the formatting does not seem to enable? @the-mikedavis Do you have any idea why the defaults are not being read? I would like to submit a pull request to fix this, but need a little more insight into what is happening. |
I can reproduce this: that the If this works without needing to be manually set in another editor and someone could post a log of the client/server communication for that editor, that would help debug this. |
I looked at nvim, and it also only provided:
and it ALSO does not validate JSON. Maybe nobody is noticing as Treesitter highlights errors in red and people assume it is the language server doing it? @hrsh7th The JSON language server is not respecting the defaults shown at https://github.com/microsoft/vscode/blob/main/extensions/json-language-features/package.json#L77 , can you fix this at your end, or shall we just add |
I'm not sure what config = { json.validate.enable = true, json.format.enable = true } that will not be merged on top of the [[language]]
name = "json"
[language.config]
provideFormatter = true
json.validate.enable = true
json.format.enable = true I think that the |
Perhaps it's related to this commit? However, we are in a position to use the implementation, and we think that there is no problem on the json-language-features side. According to my research, the current default value for But it seems to be |
Also, I'm not going to do my own patching with vscode-langservers-extracted, so I'll have to either do an upstream PR or do something on the editor side. |
Ah I see, I can confirm this. If I comment out this block then I see validation diagnostics with no extra config: helix/helix-term/src/application.rs Lines 676 to 681 in ce0837d
That explains why this behavior happens in nvim too since nvim also sends the didChangeConfiguration after initialization. I think this should be fixed upstream in the vscode codebase. IMO the current behavior is confusing and it would be ideal for the defaults to be the same between initializationOptions and didChangeConfiguration. Thank you for your help debugging, @hrsh7th! |
@the-mikedavis I think this can be closed with #8433 now being merged |
Summary
I installed vscode-langservers-extracted locally through npm. No diagnostics are shown for html/json/css. Installing globally doesn’t make a difference. Helix editor is installed from source and the runtime is linked. Rust and typescript language servers work fine. The vscode-langservers-extracted binaries work fine in neovim, I doubt it’s the installation, maybe I did something wrong in the implementation, but I don’t know what that could be. I cleared my
languages.toml
file one time to test without, same result and log messages. I tried with different CSS and HTML files, within and outside of git repos. Happy for any pointers how I could test this more thoroughly from my end.Reproduction Steps
I tried this: Open CSS file in editor, delete a closing bracket.
I expected this to happen: Diagnostics visible in gutter/statusline/diagnostic picker
Instead, this happened: No diagnostics are shown anywhere, despite CSS language server being connected
Helix log
~/.cache/helix/helix.log
Platform
Linux
Terminal Emulator
alacritty 0.10.1
Helix Version
22.12-125-gb6331394
The text was updated successfully, but these errors were encountered: