Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for LSP over TCP? #4

Open
vincens2005 opened this issue Aug 19, 2021 · 11 comments
Open

Support for LSP over TCP? #4

vincens2005 opened this issue Aug 19, 2021 · 11 comments
Labels
question Further information is requested

Comments

@vincens2005
Copy link

Perhaps a bridge would be the best way to do this

@jgmdev
Copy link
Member

jgmdev commented Sep 2, 2021

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 jgmdev added the question Further information is requested label Sep 2, 2021
@vincens2005
Copy link
Author

  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
Copy link
Member

takase1121 commented Sep 4, 2021

haha, introducing socat

socat TCP4:localhost:port STDOUT

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

@vincens2005
Copy link
Author

it's websocket

@takase1121
Copy link
Member

takase1121 commented Sep 5, 2021

it's websocket

dies inside

Alright, wscat

@jgmdev
Copy link
Member

jgmdev commented Sep 5, 2021

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
Copy link
Author

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

@takase1121
Copy link
Member

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

@boruok
Copy link

boruok commented Oct 22, 2021

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

@vincens2005
Copy link
Author

i've been busy lately so no

@lin-calvin
Copy link

haha, introducing socat

socat TCP4:localhost:port STDOUT

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

We have wsocat lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants