lite-xl-lsp icon indicating copy to clipboard operation
lite-xl-lsp copied to clipboard

Support for LSP over TCP?

Open vincens2005 opened this issue 4 years ago • 11 comments

Perhaps a bridge would be the best way to do this

vincens2005 avatar Aug 19 '21 18:08 vincens2005

Some more questions that come to mind:

  1. About the bridge: How to implement this? using a plain Lua curl/wget wrapper?
  2. How necessary is this functionality? Is there any LSP server that only implements TCP as a medium of communication?
  3. Are their any performance advantages or disadvantages?

jgmdev avatar Sep 02 '21 18:09 jgmdev

  1. that would make the most sense to keep everything using lua
  2. the Godot LSP server is one such example
  3. i don't know

vincens2005 avatar Sep 03 '21 23:09 vincens2005

haha, introducing socat

socat TCP4:localhost:port STDOUT

EDIT: please don't tell me its websocket, I can't-

takase1121 avatar Sep 04 '21 08:09 takase1121

it's websocket

vincens2005 avatar Sep 05 '21 02:09 vincens2005

it's websocket

dies inside

Alright, wscat

takase1121 avatar Sep 05 '21 02:09 takase1121

mmm, maybe we can just use netcat, I think it is also available for windows (lots of ports... and should be standard in all other platforms (Linux, Mac).

jgmdev avatar Sep 05 '21 05:09 jgmdev

I tried it with wscat and godot said it was connected but no LSP stuff worked on lite-xl's end

vincens2005 avatar Sep 06 '21 18:09 vincens2005

Perhaps there's some flow control thing (eg. NUL characters).

takase1121 avatar Sep 06 '21 23:09 takase1121

@vincens2005 did you tried to configure lite-xl with godot since?

boruok avatar Oct 22 '21 05:10 boruok

i've been busy lately so no

vincens2005 avatar Oct 23 '21 01:10 vincens2005

haha, introducing socat

socat TCP4:localhost:port STDOUT

EDIT: please don't tell me its websocket, I can't-

We have wsocat lol

lin-calvin avatar Jan 21 '23 14:01 lin-calvin