Sending request to LSP from a terminal how

the lsp-code I use, and a related post:

Rather than writing to stdin directly, I imagine you'll want to write a small program to handle at least some of the encoding details.

why copy+paste+return just fail? what I've been missing..:thinking:

The LSP protocol needs \r\n while copy-pasting likely only gives you \n. In addition there must not be a newline at the end of the request, but terminals don't send the line buffer to the program until a newline is typed.

1 Like