Closed chrislemaire closed 1 year ago
Is it possible to manually debug an instance of HLS running in a terminal?
Not that I know of. Especially in LSP mode, where only protocol compliant clients are expected.
Am I supposed to write directly to the input of the HLS process and read from the output, or is this process running a server that is accessed in a different way?
That is correct, you write to hls's stdin, and you read the stdout.
When parsing JSON-RPC messages, are line endings required to be "\r\n"?
I believe so, but for details, you should read the LSP specification https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#headerPart
We are at least compliant with that, if we accept more, then feel free to open a bug-report.
No activity, closing as stale.
I am trying to write a client for HLS, but so far things haven't been in my favour... I'm trying to debug why no connection is setup with HLS after the LSP library I'm using did not help with any useful error messages, but I fear I don't really understand the way LSP is implemented (perhaps in general).
Starting HLS with the following command gives me some output:
I presume this means the server has started and can be used from this terminal? I tried sending bogus messages on this terminal and noticed a few things.
In short, I have the following questions:
Your environment
Which OS do you use? Ubuntu
Which version of GHC do you use and how did you install it?
- How is your project built (alternative: link to the project)? -
Which LSP client (editor/plugin) do you use? Custom
Which version of HLS do you use and how did you install it? -
Have you configured HLS in any way (especially: a
hie.yaml
file)? -What's wrong?
Debug information