emacs-lsp / lsp-mode

Emacs client/library for the Language Server Protocol
https://emacs-lsp.github.io/lsp-mode
GNU General Public License v3.0
4.76k stars 874 forks source link

vls doesn't work with LSP mode #3309

Open gitautas opened 2 years ago

gitautas commented 2 years ago

Thank you for the bug report

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.

yyoncho commented 2 years ago

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

gitautas commented 2 years ago

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 commented 2 years ago

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

PatrickLohan commented 2 years ago

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?

yyoncho commented 2 years ago

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