lite-xl / lite-xl-lsp

LSP Plugin for Lite XL editor
MIT License
160 stars 21 forks source link

Support for LSP over TCP? #4

Open vincens2005 opened 3 years ago

vincens2005 commented 3 years ago

Perhaps a bridge would be the best way to do this

jgmdev commented 3 years ago

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?
vincens2005 commented 3 years ago
  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
takase1121 commented 3 years ago

haha, introducing socat

socat TCP4:localhost:port STDOUT

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

vincens2005 commented 3 years ago

it's websocket

takase1121 commented 3 years ago

it's websocket

dies inside

Alright, wscat

jgmdev commented 3 years ago

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).

vincens2005 commented 3 years ago

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

takase1121 commented 3 years ago

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

boruok commented 3 years ago

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

vincens2005 commented 3 years ago

i've been busy lately so no

lin-calvin commented 1 year ago

haha, introducing socat

socat TCP4:localhost:port STDOUT

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

We have wsocat lol