Fork me on GitHub
#editors
<
2015-09-24
>
gerstree06:09:59

@clumsyjedi: Thanks! I will have a go at it and let you know.

gerstree13:09:43

@clumsyjedi: I have tried, it but no success. The repl starts showing:

gerstree13:09:55

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>

gerstree13:09:44

And eventually a ThreadDead exception occurs. Meanwhile vi hangs waiting for a reponse from the REPL I guess.

clumsyjedi13:09:18

Is the when you open the file or when you try eval something?

gerstree13:09:04

When I eval something

clumsyjedi13:09:00

what’s your environment like? java version? lein version? vim-fireplace version? OS?

clumsyjedi13:09:18

I must confess to never having seen an error like that before

gerstree13:09:39

Arch Linux java version "1.8.0_40" Fireplace 1.1

gerstree13:09:30

this is my profiles.clj:

gerstree13:09:43

{: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 ""
                            :username :env/DATOMIC_REPO_USERNAME
                            :password :env/DATOMIC_REPO_PASSWORD}

clumsyjedi13:09:00

as far as fireplace, how are you installing it? pathogen?

gerstree13:09:05

Via NeoBundle

clumsyjedi13:09:38

ok, I can reproduce the error by using your profiles.clj

clumsyjedi13:09:50

so it’s not your fireplace version

juhoteperi13:09:40

I would suggest using stable cider-nrepl and refactor-nrepl versions, afaik no one has tested fireplace with those

juhoteperi13:09:15

Or well, fireplace shouldn't care too much about refactor-nrepl but it uses cider-nrepl

clumsyjedi13:09:24

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 ""
                            :username :env/DATOMIC_REPO_USERNAME
                            :password :env/DATOMIC_REPO_PASSWORD}}}}

clumsyjedi13:09:28

and it works

gerstree13:09:49

Ok, I will try 0.9.1!

gerstree13:09:25

( I eventually get a response using the 0.10 version though... funny, I was in a presentation and came back to a repl reponse)

clumsyjedi13:09:05

maybe you just need to leave the room for the sockets to work? 😕

gerstree13:09:34

Yeah, it's better for a lot of things when I'm not around simple_smile

gerstree13:09:39

I hear that a lot

gerstree13:09:32

Bam, that works. Thanks a bunch guys. Now I will try the repl connection to figwheel, that's what I was originally up to.

benedek13:09:27

fireplace still does not use refactor-nrepl, @clumsyjedi ? i am shocked... ;)

benedek13:09:48

nice to see u rnd here btw

juhoteperi13:09:18

There's a separate plugin for some refactor-nrepl functions, confusingly named vim-cider

benedek13:09:57

i know @juhoteperi nice work!

gerstree14:09:50

@clumsyjedi: Thanks for putting me on the right track, I have a figwheel repl working now!

clumsyjedi14:09:06

(benedek stop causing trouble)

gerstree14:09:06

Is there a way to list the active repl connections?

gerstree14:09:40

g f is still using the wrong repl, resulting in java stack traces while I want to be connected to clojurescript repl

borkdude14:09:08

in emacs when I search with helm-ag, how can I refresh the results (like g in rgrep)?

juhoteperi14:09:43

@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

gerstree14:09:18

Ow wow, did you really just fix this?

juhoteperi14:09:00

Perhaps 😄 I don't have working cljs repl so I don't know

gerstree15:09:56

I will try tonight, have to finish something first (in Spacemacs right now 😞 )

gerstree15:09:39

But thanks a lot!

gerstree21:09:57

@juhoteperi: no luck yet with that change. I'm fiddling with that code a bit myself, learning a bit of vimscript on the way.

venantius22:09:50

@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

venantius22:09:04

which is to say, strong ++ on the initiative here

juhoteperi22:09:38

@gerstree: I got Piggieback working somewhat. gf is working for me