Fork me on GitHub
#nrepl
<
2018-12-05
>
bozhidar11:12:42

@dchelimsky All of this is super odd as for me lein nrepl works just fine without any need for additional setup. 🙂

bozhidar11:12:08

Might be easier for you to simply build lein from master, as there its already using the latest nREPL.

bozhidar11:12:34

(Phil told me recently the lein is feature complete at this point and the next stable release will happen in a week or two)

bozhidar11:12:56

Btw, as the plugin depends only on nREPL I’m puzzled that you ran into any issues with pedantic. Was this due to tools.logging? I removed it in 0.5.1, but I haven’t updated the plugin for it.

dchelimsky13:12:32

@bozhidar with a fresh install of prelude, modified only by enabling prelude-clojure, cider installed via package-list-packages, and no deps or plugins defined in ~/.lein/profiles.clj, cider-jack-in in a freshly generated lein new foo gets me "CIDER 0.18.0 (Saigon), nREPL 0.2.12", as expected. Now what should be the minimum I need to add/change/set to use nrepl 0.5.1?

dchelimsky13:12:15

The pedantic issues are plentiful, btw. Even now, in the state described above, if I add :pedantic? :abort I get

error in process sentinel: Could not start nREPL server: Possibly confusing dependencies found:
[s3-wagon-private "1.3.1"] -> [com.amazonaws/aws-java-sdk-s3 "1.11.184" :exclusions [com.fasterxml.jackson.core/jackson-core c\
om.fasterxml.jackson.core/jackson-databind]] -> [com.amazonaws/aws-java-sdk-core "1.11.184"] -> [commons-logging "1.1.3"]
 overrides
[s3-wagon-private "1.3.1"] -> [com.amazonaws/aws-java-sdk-s3 "1.11.184" :exclusions [com.fasterxml.jackson.core/jackson-core c\
om.fasterxml.jackson.core/jackson-databind]] -> [com.amazonaws/aws-java-sdk-kms "1.11.184"] -> [com.amazonaws/aws-java-sdk-cor\
e "1.11.184"] -> [org.apache.httpcomponents/httpclient "4.5.2"] -> [commons-logging "1.2"]
 and
[s3-wagon-private "1.3.1"] -> [com.amazonaws/aws-java-sdk-s3 "1.11.184" :exclusions [com.fasterxml.jackson.core/jackson-core c\
om.fasterxml.jackson.core/jackson-databind]] -> [com.amazonaws/aws-java-sdk-core "1.11.184"] -> [org.apache.httpcomponents/htt\
pclient "4.5.2"] -> [commons-logging "1.2"]

Consider using these exclusions:
[s3-wagon-private "1.3.1" :exclusions [commons-logging]]

Aborting due to :pedantic? :abort

dchelimsky13:12:12

So then I add recommended exclusions and get

Possibly confusing dependencies found:
[org.clojure/tools.nrepl "0.2.13" :exclusions [org.clojure/clojure]]
 overrides
[org.clojure/tools.nrepl "0.2.12" :exclusions [org.clojure/clojure]]

Consider using these exclusions:


Aborting due to :pedantic? :abort

dchelimsky13:12:15

Same deal if I just get rid of the s3-wagon-private plugin entirely.

dominicm16:12:49

The tools nrepl thing might be a conflict with the internal Leiningen one. You may need an explicit dependency.

bozhidar16:12:34

> Now what should be the minimum I need to add/change/set to use nrepl 0.5.1?

bozhidar16:12:47

@dchelimsky You’re on Lein 2.8.1, right?

dchelimsky16:12:04

@bozhidar yes

bozhidar16:12:16

If so - the simplest thing to do is to install the lein snapshot for 2.8.2 and everything will be great.

dchelimsky16:12:44

I'll give it a shot

bozhidar16:12:04

As the artefact coordinates changed there’s no easy way to override the nREPL dep in 2.8.1, that’s why I created the separate lein-nrepl plugin as a stop gap measure.

bozhidar16:12:23

I never used it with jack-in, though - I’d run lein nrepl and then cider-connect to it.

bozhidar16:12:56

As for the nREpl conflicts you got - I guess you’ve got some dependency to 0.2.13 somewhere (lein 2.8.1 uses 0.2.12), but I can’t guess which one. All recent CIDER related libs depend on the “new” nREPL, not on tools.nrepl, so it can’t be coming from them. At least it shouldn’t be. 🙂

dchelimsky17:12:33

One thing after another. I just grabbed https://github.com/technomancy/leiningen/blob/master/bin/lein and get this executing it:

$ lein
Downloading Leiningen to /Users/david/.lein/self-installs/leiningen-2.8.2-SNAPSHOT-standalone.jar now...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
Failed to download  (exit code 22)
It's possible your HTTP client's certificate store does not have the
correct certificate authority needed. This is often caused by an
out-of-date version of libssl. It's also possible that you're behind a
firewall and haven't set HTTP_PROXY and HTTPS_PROXY.

dchelimsky17:12:52

And I can't seem to build an uberjar locally.

dchelimsky17:12:21

Any idea when 2.8.2 is expected out?

bozhidar23:12:48

> Any idea when 2.8.2 is expected out?

bozhidar23:12:52

Most likely next week.

👍 1