Open lalanikarim opened 2 years ago
That error in the log is coming from here: https://github.com/helix-editor/helix/blob/6de2e7634fc0badd2b8cfdee4e5f0639684138f0/helix-lsp/src/lib.rs#L33
The server seems to be sending a message that breaks the LSP spec. I'm not sure what about the message is failing to parse though. You may need to compare the messages to the lsp spec
That error in the log is coming from here:
The server seems to be sending a message that breaks the LSP spec. I'm not sure what about the message is failing to parse though. You may need to compare the messages to the lsp spec
Thanks. I'll look into it.
The issue seems to stem more than likely from phpactor returning an empty array for serverInfo. Based on the LSP spec, serverInfo was introduced in 3.15 and is optional. LSP Spec: Initialize Result
Summary
Unable to use phpactor language server for php.
Attempting to connect results in the below error:
Reproduction Steps
phpactor.sh
and make it executable and add it path.language-server
for PHP inlanguages.toml
phpactor language-server --address=127.0.0.1:8888 -vvv
code_action
using<space>+a
Expected behavior: LSP client connects with server
Actual behavior: Status line says: "Language server not active for current buffer"
Helix log
Language Server Log
Here is the output from phpactor language-server:
Platform
Linux 5.16.19-76051619-generic x86_64
Terminal Emulator
tmux-256color
Helix Version
22.03-118-gb0bceb56