lsp-mode icon indicating copy to clipboard operation
lsp-mode copied to clipboard

vls doesn't work with LSP mode

Open gitautas opened this issue 3 years ago • 5 comments

Thank you for the bug report

  • [X] I am using the latest version of lsp-mode related packages.
  • [X] I checked FAQ and Troubleshooting sections
  • [x] You may also try reproduce the issue using clean environment using the following command: M-x lsp-start-plain

Bug description

vls doesn't seem to communicate with LSP mode, being stuck in starting mode, it works with eglot.

LSP log is empty, only printing the opening message from vls, no other messages go through.

Steps to reproduce

  1. Install the v environment.
  2. Install vls.
  3. Register vls with LSP mode.
  4. Open a .v or .vsh file.

Expected behavior

vls starting and communicating with lsp-mode, giving completion and other supported lsp features.

Which Language Server did you use?

vls

OS

MacOS

Error callstack

No response

Anything else?

This server works out of the box with eglot, and I've had other people confirm that they haven't been able to get it working with lsp-mode either.

gitautas avatar Jan 10 '22 09:01 gitautas

What happens when you do M-x lsp? What do you have in M-x lsp-describe-session? Is there client/server communication?

yyoncho avatar Jan 10 '22 09:01 yyoncho

It runs the server, the server prints a warning that it's a WIP server, afterwards there is no further communication. This is the output from M-x describe-session image

gitautas avatar Jan 10 '22 10:01 gitautas

Here's an issue with vls for the same problem.

gitautas avatar Jan 10 '22 11:01 gitautas

Might it have something to do with lsp-mode expecting a language server called 'vls' to be actually the Vue language server and getting confused?

PatrickLohan avatar Jan 10 '22 14:01 PatrickLohan

As far as I can see the server is not sending resonse ot initialize request but I have to debug it more.

yyoncho avatar Jan 10 '22 14:01 yyoncho