objeck / objeck-lsp

LSP server for Objeck
https://github.com/objeck/objeck-lang-server
Other
1 stars 1 forks source link

What happen if I don't specify the port to 6013? #2

Closed ghost closed 1 year ago

ghost commented 1 year ago

Which port will it use?

objeck commented 1 year ago

For what?

ghost commented 1 year ago

For what?

The command is: obr objeck_lsp.obe objk_apis.json 6013

What if I don't put 6013? obr objeck_lsp.obe objk_apis.json

Some text editors don't support specifying which port to use: https://github.com/lite-xl/lite-xl-lsp/issues/52

objeck commented 1 year ago

The implementation uses sockets vs. pipes. Had plans to change to code to use pipes, however, moved on to other things.

ghost commented 1 year ago

It's just a question, I didn't intend to ask you to do anything. Bad text editor, I will not use it.

ghost commented 1 year ago

It is required if the client does not know the port; it will not connect to the server. Most LSP clients specify a protocol, pipes, named pipes, sockets, and supporting parameters.

It turned out these text editors only support operating over stdin and stdout.

objeck commented 1 year ago

Yes, pipes. Objeck supports pipes; however, the LSP code needs to be refactored to use pipes.

ghost commented 1 year ago

Yes, pipes

I heard people said LSP operating over stdin and stdout is extremely slow on Windows.

objeck commented 1 year ago

The two functions that would need to change are here.

objeck commented 1 year ago

Pipe via STDIO has been implemented. Added a named Pipe class for the next release.