Fork me on GitHub
#vim
<
2017-08-14
>
iboss10:08:57

Hi, I'm trying to use fireplace with clojurescript. Can :Connect to nrepl can eval simple stuff but K didn't work and tried (.log js/console "Hello") but it said can't find console. Any idea?

dominicm10:08:32

@iboss You need to use :PIggieback 🙂

iboss10:08:59

@dominicm even with :Piggieback doesn't work

dominicm11:08:43

@iboss doesn't work with what? Figwheel?

iboss12:08:05

@dominicm yes, I haven't tried with non-figwheel yet

iboss12:08:24

oh, seems like it works if I run lein repl instead of lein figwheel

dominicm12:08:44

Maybe lein figwheel doesn't start things correctly :thinking_face:

iboss13:08:12

I'm a little bit confused. When I run lein repl, it prompted "nREPL server started on port 60343" but in the same repl, I start figwheel and it said "Figwheel: Starting nREPL server on port: 7888" if I connect to 60343, K works but 7888 doesn't work

iboss13:08:58

and still gf doesn't work :thinking_face:

dominicm13:08:39

Hold on. > in the same repl, I start figwheel How did you do that?

dominicm13:08:55

That is maybe out of date

dominicm13:08:10

Hmm, this is correct

dominicm13:08:33

Do you have :nrepl option in project.clj? What version of figwheel are you using?

dominicm13:08:55

@iboss ^^ (I will get the hang of doing @ first eventually)

iboss13:08:59

@dominicm seems like I forgot to run (cljs-repl) after (start-figwheel!). Everything works but gf. Almost there! 😮

dominicm13:08:44

I think the real trick is getting :Eval (js/alert "hello!") to work

iboss14:08:39

@dominicm do you have any idea on how to make go to file from namespace work?

dominicm14:08:13

I uh, actually don't use gf, I use Ctrl-W+Ctrl-D, for everything. It seems to work for namespaces to.

iboss14:08:42

find definition?

iboss14:08:20

cool 🙂

dominicm14:08:20

I think so. I have it mapped to gs.

dominicm14:08:52

(goto symbol was the original mnemonic)

iboss14:08:20

Thanks a lot! It was a great help 🙂

dominicm14:08:12

No problem 🙂

tungsten23:08:54

Does anyone have a good workflow to connect vim to figwheel reliably? I can only make it work with the figwheel template - I don't know the workflow to connect to luminus or chestnut based projects... This seems so wonky to me. Does connecting to the browser repl completely depend on this workflow: https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-with-Vim