Fork me on GitHub
#vim
<
2017-09-18
>
eugekev00:09:45

I’ve followed the fireplace setup completely I believe but am still getting a “Fireplace: class java.lang.ClassNotFoundException” whenever I try to use anything related to fireplace. I have salve installed. I can’t seem to find any evidence on the net of someone else having run into this problem. Any ideas?

dave01:09:08

@eugekev could it be that your code is invoking a java class that isn't on the classpath? perhaps an import is spelled wrong, or you're missing a dependency in your project.clj/build.boot?

dave01:09:23

a basic smoke test to see if your setup is working: 1. in a separate terminal, run lein repl or boot repl depending on which tool you're using 2. observe the port of the nrepl that is started 3. in vim, run :Connect 12345 where 12345 is the port on which the nrepl is running

dave01:09:35

4. cqp(+ 1 1)<CR>

eugekev01:09:45

Thanks @dave - it seems to run fine with lein repl and I tried connecting by hand (although the .nrepl-port is generated fine)

dave01:09:25

oh -- now that i think about it, i've seen a ClassNotFoundException from time to time when i try to e.g. call a function in the namespace i'm in, without requiring the namespace first

dave01:09:06

you could try :Require! and see if that helps

dave01:09:27

i have that mapped to <leader>r, i use it so much

eugekev01:09:23

It’s strange, everything with fireplace just gives the same thing. I’ve spelunked the vimscript of fireplace too and can’t seem to find anything (as well as I can feasibly read vimscript at least)

dave01:09:01

ah, this seems clojurescript related

eugekev01:09:15

Yes of course. Sigh.

dave01:09:23

i haven't been able to get a cljs repl going in fireplace, unfortunately

dave01:09:42

supposedly it is possible via piggieback, but i spent some time tinkering with it and wasn't able to sort it out

eugekev01:09:16

Thanks Dave - saved me a lot of headaches

dave01:09:07

sure thing!

eugekev01:09:09

@dave - this was pretty straightforward to get a cljs repl working in intellij: https://github.com/bhauman/lein-figwheel/wiki/Running-figwheel-in-a-Cursive-Clojure-REPL

dominicm06:09:51

Figwheel 100% works with fireplace.

dominicm06:09:09

Make sure you're on the version newer than .8

dominicm06:09:32

Can offer more detailed support in a couple hours

eugekev14:09:33

Thanks @dominicm - if the persistent java.lang.ClassNotFoundException strikes you as something please let me know. Happening with any fireplace action

dominicm14:09:19

@eugekev only tested on cljs files?

dominicm14:09:37

Have you run :Piggieback ¿