pylyzer
pylyzer copied to clipboard
[Compatibility] Helix can't connect: pylyzer closes the stream
Version: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.10
https://github.com/helix-editor/helix errors out with
2023-03-10T17:37:49.871 helix_lsp [ERROR] failed to initialize language server: server closed the stream
2023-03-10T17:37:49.871 helix_lsp::transport [ERROR] err: <- StreamClosed
To reproduce, replace "pylsp" with "pylyzer" in languages.toml
(root folder) and open any python file.
helix logs are in ~/.cache/helix/helix.log
It seems to work with the following settings, but diagnostics results are not displayed.
languages.toml
[[language]]
name = "python"
language-server = { command = "pylyzer", args = ["--server"] }
@mtshiba So, how to fix this? Or is it currently not supported?
Here are some things I've found using helix.
- Completion works fine.
- Goto-definition works fine (g + d).
- Hover works fine (space + k).
- Diagnostics do not show up, but for some reason they do when I run goto-definition.
- Renaming is not reflected until the end of the process.
This behavior is probably a helix problem.
Now they work just fine in helix, except inlay hints (they don't erase after stopping LSP) - but it might be helix issue.