lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
pez 2021-01-01T11:12:09.104700Z

What’s the workflow for hacking on the server? When I run (-main) at the REPL I get back

#object[org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor$1 0x6987186d "org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor$1@6987186d"]
I’d like to find a port that I can point my client at. πŸ˜ƒ

ericdallo 2021-01-03T16:45:52.124500Z

I just added a section about this thread: https://github.com/clojure-lsp/clojure-lsp/blob/master/README.md#development

2πŸ’―
pez 2021-01-03T17:03:29.124800Z

Awesome!

ericdallo 2021-01-01T16:25:10.104800Z

When clojure-lsp starts the nrepl, it prints the server in /tmp/clojure-lsp.out

ericdallo 2021-01-01T16:25:51.105100Z

Then you just need to plug a REPL on that port

snoe 2021-01-01T20:08:56.105300Z

or use the server-info command from the client

1☝️
snoe 2021-01-01T20:09:51.106300Z

@ericdallo https://github.com/borkdude/clj-kondo/pull/1108 I think this is 1/2 of what we need for the analysis branch.

snoe 2021-01-01T20:36:34.106600Z

Here's the other half https://github.com/borkdude/clj-kondo/pull/1110

borkdude 2021-01-01T20:37:57.107Z

Thanks, I'll take a look tomorrow when I'm less tired :)

borkdude 2021-01-01T20:38:17.107300Z

Good start of the year!

snoe 2021-01-01T20:40:01.107400Z

πŸ˜‚ Yeah, I had no energy last year to think about this stuff, definitely feeling guilty for how long it took.

bringe 2021-01-01T21:00:18.107600Z

I actually didn't realize I could do that πŸ˜„ . Good to know.

ericdallo 2021-01-01T21:15:50.107900Z

Amazing, I'm so glad we can finish this integration, thank you very much for that!

pez 2021-01-01T22:26:45.108200Z

My instinct is to try from my client. So before I can send a server-info query anywhere, I need to know where to send it. I think I might carry with me a set of wrong assumptions. It would help with some page where I could read about the dev workflow and how it is supposed to work.