nrepl

https://github.com/nrepl/nrepl || https://nrepl.org
Jakub Holý 2018-12-05T07:57:32.036100Z

Sorry to bother @bozhidar, have you found out something? Thank you!!!

bozhidar 2018-12-05T11:26:42.036800Z

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

bozhidar 2018-12-05T11:27:08.037400Z

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

bozhidar 2018-12-05T11:27:34.038Z

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

bozhidar 2018-12-05T11:33:56.039300Z

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.

2018-12-05T13:12:32.044400Z

@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?

2018-12-05T13:41:15.046700Z

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

2018-12-05T13:42:12.047300Z

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

2018-12-05T13:46:15.048Z

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

dominicm 2018-12-05T16:30:49.049900Z

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

bozhidar 2018-12-05T16:47:34.050300Z

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

bozhidar 2018-12-05T16:47:47.050800Z

@dchelimsky You’re on Lein 2.8.1, right?

2018-12-05T16:48:04.051300Z

@bozhidar yes

bozhidar 2018-12-05T16:48:16.051900Z

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

2018-12-05T16:48:44.052800Z

I'll give it a shot

bozhidar 2018-12-05T16:49:04.053300Z

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.

bozhidar 2018-12-05T16:49:23.053800Z

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

bozhidar 2018-12-05T16:51:56.055600Z

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. 🙂

2018-12-05T17:18:33.057200Z

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 <https://github.com/technomancy/leiningen/releases/download/2.8.2-SNAPSHOT/leiningen-2.8.2-SNAPSHOT-standalone.zip> (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.

2018-12-05T17:18:52.057800Z

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

2018-12-05T17:19:21.058200Z

Any idea when 2.8.2 is expected out?

bozhidar 2018-12-05T23:10:48.058700Z

> Any idea when 2.8.2 is expected out?

bozhidar 2018-12-05T23:10:52.058900Z

Most likely next week.

1👍