Skip to content
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

Spawning language server fails #12

Closed
Amparose opened this issue May 1, 2022 · 2 comments
Closed

Spawning language server fails #12

Amparose opened this issue May 1, 2022 · 2 comments

Comments

@Amparose
Copy link

Amparose commented May 1, 2022

I have just installed with vim-plug, using "recommended" on Neviom 0.7. After being asked if I want to install a vim LSP when opening my config, I selected yes. When I relaunch and open a vim file I get a console message:

Spawning language server with cmd: `vim-language-server` failed. The language server is either not installed, missing from PATH, or not executable.

Isn't this plugin meant to manage all of this? Not sure how to fix this.

@VonHeikemen
Copy link
Owner

That was fun... it's a very weird bug. Good news is I think I found the cause... bad news is probably need to reinstall vimls.

So, after you get the error message uninstall vimls with this.

:LspUninstall --sync vimls

Update lsp-zero to download the recent commit (7f0d541) and restart neovim. Install vimls:

:LspInstall --sync vimls

Hopefully this will download vimls with the "right state". At this point you can either start the server manually with:

:LspZeroSetupServers vimls

Or restart neovim.

@Amparose
Copy link
Author

Amparose commented May 4, 2022

Just tried it @VonHeikemen and looks like that fixes the issue. Awesome work and thank you for the fix!

@Amparose Amparose closed this as completed May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants