Repository navigation
How can I start the server on a specific port #4468
|
I am trying to set up the Haskell language server and connect it to my Emacs. I want to run the server within a container and connect it to my Emacs with networking. I don't see any options for defining a port for the server to listen to, is this not supported? How does it currently work, via STDIO? |
Answered by
krystalcode
Dec 26, 2024
Replies: 2 comments 2 replies
|
Hi! Yes, LSP servers by default read messages from stdin and send messages via stdout. |
2 replies
|
For anybody that wants to do something similar, I figured out how to make it work via STDIO using
Here is an example entrypoint for a container: https://github.com/krystalcode/docker-dev/blob/master/language-servers/haskell/entrypoint.sh |
0 replies
Answer selected by
krystalcode
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For anybody that wants to do something similar, I figured out how to make it work via STDIO using
socat:socat tcp-listen:8893,reuseaddr exec:"haskell-language-server-wrapper --lsp"Here is an example entrypoint for a container: https://github.com/krystalcode/docker-dev/blob/master/language-servers/haskell/entrypoint.sh