Fork me on GitHub
#vim
<
2018-12-13
>
Jan K14:12:04

Is there someone that has a working setup with vim-fireplace and Clojure 1.10 ?

enforser14:12:52

I'll try loading up clojure 1.10 in a REPL and see if fireplace works!

enforser14:12:03

seems to have worked fine with 1.10.0-RC5

Jan K14:12:31

Yeah I mean 1.10.0-RC5. What nREPL version are you using (it's printed when you do lein repl) that works? I keep getting random hangs when evaluating code, and/or exceptions raised when evaluating via fireplace are not reported properly 😞

enforser14:12:29

REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.10.0-RC5
Java HotSpot(TM) 64-Bit Server VM 1.8.0_111-b14

enforser14:12:58

The only dep in my project.clj is clojure

Jan K14:12:06

Looks same as mine. Do you see the correct exception when you do something like :Eval (/ 1 0) ?

enforser15:12:11

Yep! I get the divide by zero exception

enforser15:12:00

maybe try removing things from your ~/.lein/profiles.clj ?

enforser15:12:54

oh, do you have venantius/ultra included? I recently had to remove that. Didn't have the time to figure out why it was a problem, but it was causing fireplace to do some weird things

enforser15:12:36

oh, another potential difference I always forget about - I am using neovim

enforser15:12:46

I will try it with vim, one second

Jan K15:12:59

I don't use ultra. Tinkering with profiles.clj didn't help, but I'll try some more. I'm using vim 8.1, not neovim.

Jan K15:12:48

actually the Eval exception works for me too, but when I evaluate exception throwing code with cpp I get this:

[clojure.tools.nrepl.server:286] - Unhandled REPL handler exception processing message {:id fireplace-wilhelm-1544713309-20, :op stacktrace, :session bede9da2-e052-4d2c-b284-43f96f3d6fb6}
java.lang.NullPointerException:

Jan K15:12:01

and vim hangs until I ctrl+c

enforser15:12:00

I'm currently upgrading my vim version, then I'll try again!

enforser15:12:03

cpp on (/ 1 0) works with 1.10 in neovim - i.e. I get the exception back. Waiting on non-neo vim to install

dominicm15:12:59

@trailcapital update cider-nrepl to 0.19-SNAPSHOT

👍 4
dominicm15:12:27

There's a bug where cider's stacktrace code blows up with the new 1.10 error messages

enforser15:12:29

mine is working, @jkr.sw you should try that ^

Jan K15:12:39

@dominicm Yeah, seems like that helped! (using [cider/cider-nrepl "0.19.0-SNAPSHOT"] in .lein/profiles.clj)

dominicm15:12:29

sorry. Lost track of who's issue it was.

Jan K15:12:28

Thanks @dominicm and @trailcapital, now I can try some of that 1.10 goodness 🙂. Hopefully no random hangs will appear