This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-12
Channels
- # announcements (2)
- # beginners (104)
- # cider (2)
- # cljs-dev (26)
- # cljsrn (1)
- # clojure (125)
- # clojure-dev (27)
- # clojure-italy (24)
- # clojure-nl (24)
- # clojure-russia (4)
- # clojure-spec (10)
- # clojure-uk (83)
- # clojurescript (18)
- # code-reviews (102)
- # community-development (14)
- # core-async (18)
- # cryogen (11)
- # cursive (15)
- # datomic (16)
- # emacs (6)
- # figwheel-main (6)
- # fulcro (142)
- # graphql (5)
- # jobs (5)
- # jobs-discuss (18)
- # kaocha (1)
- # keechma (1)
- # leiningen (20)
- # luminus (1)
- # mount (5)
- # pedestal (4)
- # reagent (17)
- # reitit (8)
- # shadow-cljs (29)
- # tools-deps (19)
- # vim (108)
Hi Sapo, saw your message on Clojureverse. I'm not sure where you asked before, but you're more likely to get a response here than anywhere else 🙂
So fwiw, I don't use vim-classpath. As long as you start a repl, things tend to be faster that way. I never want to pay the 4s cost of waiting for clojure to start.
Second, I think you need to lein repl
from the same directory as project.clj
, instead of the test
directory.
When you do vim src/test/core.clj
, are you creating the test
directory for the first time then?
If you use vim-fireplace, you could just reproduce step-by-step and tell me how you use REPL in Vim...
After doing vim src/test/core.clj
try doing :Connect
where 11111
is in the output of lein repl
Eval (System/getProperty "user.dir")
does this match the directory you did lein repl
in?
lein repl
must be run from the same directory as project.clj, else it's relative to the wrong stuff.
I don't understand why vim-replace thinks to be in the same directory of the editing file
vim doesn't think it is. Your repl definitely thinks it's not in the root. It's a bit odd really :thinking_face:
From the REPL in the terminal Eval (System/getProperty "user.dir")
returns the correct directory
fwiw, a java process can only have 1 result for "user.dir"
. So you're definitely connected to the wrong repl.
Yeah, maybe it's some settings in Vim then. It could be that other plugins launch a repl
Ok, so I removed everything about clojure in neovim settings. I've just left vim-fireplace
Now it connects as before, but when I try any command (e.g. :Eval 1
) I get connection refused (errno 111)
I imagine closing & opening vim would be useful, as it might have an old connection registered.
So. From the top.
You've gone into ~/Develop/overtone/tutorial/
, then you did lein repl
? Then you started another terminal, did cd ~/Develop/overtone/tutorial
, then vim src/tutorial/core.clj
?
not sure that there is a space there - I always use:
lein repl :connect localhost:[nrepl-port]
ah 🙂 I use the fireplace jump to definition which uses a weird binding - so it's bound to gs
I don't find that binding bad, but the trick is to remap your cap lock key to be another control key
My control key is under my thumb on my ergodox, but I've never been able to get used to that binding.
even though hjkl are not together, they're still in a configuration that feels good, at least to me