Fork me on GitHub
#vim
<
2017-05-20
>
hkupty11:05:07

@reborg doesn't fireplace use refactor-nrepl?

hkupty11:05:55

@vitruvia did you manage to set up your configuration?

juhoteperi11:05:27

It is possible to use refactor-nrepl with fireplace, with additional plugins, but fireplace itself doesn't use refactor-nrepl features

hkupty11:05:34

@juhoteperi interesting.. I'll take a look at that... Acid uses a single feature (which was buggy but they managed to fix) from refactor-nrepl. If I remember correctly, for code navigation... I'll take a look at fireplace to understand how it supports it.

dominicm12:05:09

@ingvij it uses the 'info' op

juhoteperi13:05:07

Which is from cider-nrepl

juhoteperi13:05:23

Fireplace also works without cider-nrepl and includes fallback for that

vitruvia13:05:31

@ingvij Sort of. My plugins seem to be working but I'm having trouble with lein. For some reason I can only call the repl from the home folder but calling it from other folders cause the repl request to time out

hkupty15:05:13

@vitruvia acid uses your nvim location to find lein. If you work with tabs, do a :tcd to your project/repl location.

vitruvia16:05:05

@ingvij the problem i'm having is with starting a lein repl inside a project directory. When I start it in a non-project directory it runs fine, but within a project it gives me an error:

Error loading refactor-nrepl.middleware: clojure.lang.ExceptionInfo: Alembic can not manipulate specified ClassLoader. {:classloader #object[jdk.internal.loader.ClassLoaders$AppClassLoader 0x73035e27 "jdk.internal.loader.ClassLoaders$AppClassLoader@73035e27"], :reason :not-addable-with-dynapath}, compiling:(mranderson047/alembic/v0v3v3/alembic/still.clj:65:1)
I have been searching for a solution since yesterday without any luck. My project.clj is empty except for the 2 plugins that Acid tells me to include (cider and n-repl)

dominicm16:05:56

@vitruvia You shouldn't technically need nrepl plugin these days. What are the contents of the files in ~/.lein/?

dominicm16:05:02

(or windows equivalent)

hkupty16:05:54

Those two plugins should be on ~/.lein/profile.clj, not on your projects project.clj

dominicm16:05:44

This is the minimal profiles.clj you require: {:user {:plugins [[cider/cider-nrepl "0.14.0"]]}}

vitruvia16:05:33

I said project but I meant profile

vitruvia16:05:06

My .lein has indices, profiles.clj, repl-history, self-installs. My profiles.clj has {:user {: plugins [[refactor-nrepl "2.3.0-SNAPSHOT"] [cider/cider-nrepl "0.14.0"]]}}

vitruvia16:05:57

@dominicm So I can run acid without the refactor plugin? their website says to use both

dominicm16:05:31

I hadn't realised acid had a hard dependency on it..

dominicm16:05:58

there's a space in your profile.clj that shouldn't be there

dominicm16:05:01

just before plugins

hkupty17:05:23

If you don't have refactor-nrepl installed, you won't be able to run some commands, such as function navigation

hkupty17:05:32

But it will work

vitruvia17:05:14

@dominic That was just a typing error. The real file doesn't have the space.

vitruvia17:05:39

@dominicm That was just a typing error. The real file doesn't have the space; sorry I had tagged you wrong

vitruvia17:05:10

@ingvij ok. I'll search some more and see if I can fix the issue then if it doesn't I guess that is it

hkupty17:05:44

Don't hesitate to bother me if acid causes any more trouble.

vitruvia17:05:37

Alright. Thanks! =]