pylyzer icon indicating copy to clipboard operation
pylyzer copied to clipboard

[Compatibility] Helix can't connect: pylyzer closes the stream

Open Houkime opened this issue 1 year ago • 4 comments

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

Houkime avatar Mar 10 '23 17:03 Houkime

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 avatar Mar 13 '23 10:03 mtshiba

@mtshiba So, how to fix this? Or is it currently not supported?

failable avatar Apr 12 '23 05:04 failable

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.

mtshiba avatar Apr 12 '23 07:04 mtshiba

Now they work just fine in helix, except inlay hints (they don't erase after stopping LSP) - but it might be helix issue.

KhazAkar avatar Feb 06 '24 22:02 KhazAkar