halfbrained / cuda_lsp

LSP Client plugin for CudaText
6 stars 4 forks source link

Rust rls #100

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi,

I've successfully configured several language servers with this plugin, but rls (https://github.com/rust-lang/rls) seems to be unresponsive. Does this work for anyone else ?

{ "lexers": { "Rust": "rs" }, "cmd_unix": [ "rls" ] }

I also tried with "Rust": "rust"

halfbrained commented 3 years ago

Seems to be a rls issue - https://github.com/rust-lang/rls/issues/536)

A workaround is to comment out the line in <cudatext>/py/cuda_lsp/sansio_lsp_client/io_handler.py, replace this:

        "Content-Type": f"application/vscode-jsonrpc; charset={encoding}",

with this

        #"Content-Type": f"application/vscode-jsonrpc; charset={encoding}",
Alexey-T commented 3 years ago

Posted this info to https://wiki.freepascal.org/CudaText_plugins#LSP_server_for_Rust , waiting for a fix