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? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi! Yes, LSP servers by default read messages from stdin and send messages via stdout. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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