Fork me on GitHub
#vim
<
2018-09-20
>
eraserhd13:09:15

@snoe I'm trying to use clojure-lsp with kakoune, but I think something's wrong. I start clojure-lsp and get no output. I try from a tty and enter {}<Enter>, and still nothing. Am I missing something?

snoe14:09:41

@eraserhd on linux a user recently had to launch it with bash -c 'clojure-lsp' I get

$ clojure-lsp
{}

Sep 20, 2018 8:05:11 AM org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer fireError
SEVERE: Missing header Content-Length in input "{}

eraserhd14:09:20

Yeah, nothing. 😕

[jfelice@C02X421DJHD4 kak-lsp(master)]$ bash -c clojure-lsp
{}

snoe14:09:22

might need two \n

snoe14:09:04

I'm using the eclipse lsp4j so haven't looked at the protocol myself ¯\(ツ)

🤷 4
eraserhd14:09:05

Yes, so I get approimately that error.

eraserhd14:09:44

hmm. I wonder why it doesn't seem to do anything within Kakoune. Maybe a kak-lsp problem.

eraserhd14:09:26

It doesn't need like a --stdio arg or anything, does it?

snoe14:09:22

nope, it's all by stdio

eraserhd14:09:02

@snoe I think it just doesn't work on (a particular?) .cljc file? It's working now!!

snoe14:09:33

ahh yeah, i'm working through better cljc parsing

eraserhd14:09:21

OK... This is really neat, tho.

👍 4
andrewguy922:09:11

Is this anything to worry about?

andrewguy922:09:05

@rgm I was following the path you laid out. I get this before the vim steps. Are you also getting this warning?

rgm22:09:30

@athomsonguy I think that’s a Java 10 thing. When I cut back down to Java 8 / 1.8 with jenv it goes away (or, the root problem still exists but nothing complains about it anymore ¯\(ツ)/¯ )

andrewguy922:09:02

Thanks @rgm. I’ve got a figwheel <-> vim repl working! K to see the docs is great!

rgm22:09:59

:thumbsup: … try ]<C-D> to jump to source for the symbol under the cursor … it’ll hop into jars.

rgm22:09:13

pretty great

andrewguy922:09:23

Not sure why js/alert seems special. Doesn’t work like other symbols