@clumsyjedi: Thanks! I will have a go at it and let you know.
@clumsyjedi: I have tried, it but no success. The repl starts showing:
Exception updating the ns-cache #<SocketException java.net.SocketException: Socket closed>
Exception updating the ns-cache #<SocketException java.net.SocketException: Socket closed>
Exception updating the ns-cache #<SocketException java.net.SocketException: Socket closed>
And eventually a ThreadDead exception occurs. Meanwhile vi hangs waiting for a reponse from the REPL I guess.
Is the when you open the file or when you try eval something?
When I eval something
whatโs your environment like? java version? lein version? vim-fireplace version? OS?
I must confess to never having seen an error like that before
Arch Linux java version "1.8.0_40" Fireplace 1.1
this is my profiles.clj:
{:user
{:plugins [
[cider/cider-nrepl "0.10.0-SNAPSHOT"]
[refactor-nrepl "1.2.0-SNAPSHOT"]
[jonase/eastwood "0.2.1"]
[lein-deps-tree "0.1.2"]
[lein-try "0.4.1"]]
:dependencies [[org.clojure/tools.nrepl "0.2.10"]]
:repositories {"datomic" {:url "<https://my.datomic.com/repo>"
:username :env/DATOMIC_REPO_USERNAME
:password :env/DATOMIC_REPO_PASSWORD}
as far as fireplace, how are you installing it? pathogen?
Via NeoBundle
ok, I can reproduce the error by using your profiles.clj
so itโs not your fireplace version
I would suggest using stable cider-nrepl and refactor-nrepl versions, afaik no one has tested fireplace with those
Or well, fireplace shouldn't care too much about refactor-nrepl but it uses cider-nrepl
yeah same, I changed your profiles to
{:user
{:plugins [
[cider/cider-nrepl "0.9.1"]
[refactor-nrepl "1.1.0"]
[jonase/eastwood "0.2.1"]
[lein-deps-tree "0.1.2"]
[lein-try "0.4.1"]]
:dependencies [[org.clojure/tools.nrepl "0.2.10"]]
:repositories {"datomic" {:url "<https://my.datomic.com/repo>"
:username :env/DATOMIC_REPO_USERNAME
:password :env/DATOMIC_REPO_PASSWORD}}}}
and it works
Ok, I will try 0.9.1!
( I eventually get a response using the 0.10 version though... funny, I was in a presentation and came back to a repl reponse)
maybe you just need to leave the room for the sockets to work? ๐
Yeah, it's better for a lot of things when I'm not around :simple_smile:
I hear that a lot
Bam, that works. Thanks a bunch guys. Now I will try the repl connection to figwheel, that's what I was originally up to.
fireplace still does not use refactor-nrepl, @clumsyjedi ? i am shocked... ;)
nice to see u rnd here btw
There's a separate plugin for some refactor-nrepl functions, confusingly named vim-cider
i know @juhoteperi nice work!
@clumsyjedi: Thanks for putting me on the right track, I have a figwheel repl working now!
nice one
(benedek stop causing trouble)
Is there a way to list the active repl connections?
g f is still using the wrong repl, resulting in java stack traces while I want to be connected to clojurescript repl
in emacs when I search with helm-ag, how can I refresh the results (like g in rgrep)?
@gerstree: Looks like gf
implementation in Fireplace just uses Clojure ns-aliases
so it won work with Cljs: https://github.com/tpope/vim-fireplace/blob/04a7f542f56cb2d932c454648e10fc39f70af345/plugin/fireplace.vim#L1352
@gerstree: Try this: https://github.com/Deraen/vim-fireplace/commit/3270b3942ae6c1dd908b73ca716512698e477364
Ow wow, did you really just fix this?
Perhaps ๐ I don't have working cljs repl so I don't know
I will try tonight, have to finish something first (in Spacemacs right now ๐ )
But thanks a lot!
@juhoteperi: no luck yet with that change. I'm fiddling with that code a bit myself, learning a bit of vimscript on the way.
@juhoteperi: / @gerstree if either of you are able to actually get something working there, for the love of god get it into fireplace core. Iโm going nuts not having access to gf
in cljs
which is to say, strong ++ on the initiative here
@gerstree: I got Piggieback working somewhat. gf
is working for me