This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-03-31
Channels
- # announcements (16)
- # beginners (52)
- # calva (44)
- # cider (82)
- # clojure (21)
- # clojure-greece (1)
- # clojure-losangeles (1)
- # clojure-spec (8)
- # clojure-uk (3)
- # clojurescript (55)
- # community-development (26)
- # cursive (18)
- # datomic (7)
- # editors (6)
- # events (1)
- # fulcro (19)
- # kaocha (1)
- # klipse (1)
- # off-topic (13)
- # re-frame (1)
- # ring-swagger (2)
- # spacemacs (2)
- # vim (15)
blarg! cider-jack-in (latest cider, jdk1.8, latest clojure)
[nREPL] Starting server via /usr/local/bin/clojure -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} cider/cider-nrepl {:mvn/version "0.22.0-SNAPSHOT"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]'...
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: Exception in thread "main" java.io.FileNotFoundException: Could not locate nrepl/middleware/pr_values__init.class or nrepl/middleware/pr_values.clj on classpath. Please check that namespaces with dashes use underscores in the Clojure file name., compiling:(cider/nrepl.clj:1:1)
I'm getting the same error too in a deps.edn
project since upgrading to latest version of cider
When I run the command that emacs/cider says it is running, aka
$ /usr/local/bin/clojure -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} cider/cider-nrepl {:mvn/version "0.22.0-SNAPSHOT"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]'
Exception in thread "main" Syntax error compiling at (cider/nrepl.clj:1:1).
at clojure.lang.Compiler.load(Compiler.java:7647)
at clojure.lang.RT.loadResourceScript(RT.java:381)
....
Caused by: java.io.FileNotFoundException: Could not locate nrepl/middleware/pr_values__init.class, nrepl/middleware/pr_values.clj or nrepl/middleware/pr_values.cljc on classpath. Please check that namespaces with dashes use underscores in the Clojure file name.
Hmm, I did push a new snapshot on cider-nrepl a day ago, but there were no changes there that seem related to this problem.
I wonder if something’s wrong with the build in general. It’s the first one using the new MrAnderson 0.5, but on the other hand you’re getting the error for something that’s not even inlined.
the cider.nrepl
ns in that snapshot jar looks very outdated. no idea how could that happen. was this a manual build or CI produced?
make deploy master
lein inline-deps
Retrieving thomasa/mranderson/0.5.1-SNAPSHOT/mranderson-0.5.1-20190329.105340-3.pom from clojars
Retrieving thomasa/mranderson/0.5.1-SNAPSHOT/mranderson-0.5.1-20190329.105340-3.jar from clojars
project prefix: cider.nrepl.inlined-deps
retrieve dependencies and munge clojure source files
in RESOLVED-TREE mode, working on a resolved dependency tree
[cljs-tooling "0.3.1" :exclusions [[org.clojure/clojure]]]
[compliment "0.3.8" :exclusions [[org.clojure/clojure]]]
[cider/orchard "0.5.0-20190329.191815-1" :exclusions [[org.clojure/clojure]]]
[org.clojure/java.classpath "0.3.0" :exclusions [[org.clojure/clojure]]]
[org.tcrawley/dynapath "0.2.5" :exclusions [[org.clojure/clojure]]]
[fipp "0.6.15" :exclusions [[org.clojure/clojure]]]
[org.clojure/core.rrb-vector "0.0.13"]
[org.clojure/tools.trace "0.7.10" :exclusions [[org.clojure/clojure]]]
[cljfmt "0.6.4" :exclusions [[org.clojure/clojure] [org.clojure/clojurescript]]]
[com.googlecode.java-diff-utils/diffutils "1.3.0"]
[org.clojure/tools.cli "0.3.7"]
[rewrite-clj "0.6.0"]
[rewrite-cljs "0.4.4"]
[mvxcvi/puget "1.1.0" :exclusions [[org.clojure/clojure]]]
[mvxcvi/arrangement "1.1.1"]
[org.clojure/tools.namespace "0.3.0-alpha4" :exclusions [[org.clojure/clojure]]]
[thunknyc/profile "0.5.2" :exclusions [[org.clojure/clojure]]]
[org.clojure/tools.reader "1.2.2" :exclusions [[org.clojure/clojure]]]
which maybe has the right version of stuff in it?! looks weird… something went wrong when this was built. what about just trying to deploy a new one maybe?
Perhaps the previous one got messed up because I didn’t do clean after updating MrAnderson. I don’t know what exactly went wrong, but it seems we’re back in business now.
good, i’ve also seen you already upgraded to 0.5.1-snapshot of MrAnderson. brave move 😉
...
drwxrwxrwx 0 31-Mar-2019 15:08:48 src/
drwxrwxrwx 0 31-Mar-2019 15:08:48 src/cider_nrepl/
-rw-rw-rw- 2136 31-Mar-2019 15:08:48 src/cider_nrepl/main.clj
-rw-rw-rw- 4377 31-Mar-2019 15:08:48 src/cider_nrepl/plugin.clj
drwxrwxrwx 0 31-Mar-2019 15:08:48 src/cider/
drwxrwxrwx 0 31-Mar-2019 15:08:48 src/cider/nrepl/
-rw-rw-rw- 1035 31-Mar-2019 15:08:48 src/cider/nrepl/version.clj
-rw-rw-rw- 2777 31-Mar-2019 15:08:48 src/cider/nrepl/print_method.clj
strange. there's a top level project.clj in the jar with (defproject mvxcvi/arrangement "1.1.1"
This seems spooky... I tried changing nrepl {:mvn/version "0.6.0"} to *nrepl {:mvn/version "0.6.0-SNAPSHOT"} and it started up fine, now the spooky bit
@bozhidar pushed a change to make CIDER use the 21.2 snapshot. perhaps you have that change?
I was using outside of cider,
$ /usr/local/bin/clojure -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} cider/cider-nrepl {:mvn/version "0.22.0-SNAPSHOT"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]'
Huh...
$ mv ~/.m2 ~/m2.huh
$ /usr/local/bin/clojure -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} cider/cider-nrepl {:mvn/version "0.22.0-SNAPSHOT"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]'
Error: Could not find or load main class clojure.main
$ clojure
Downloading: org/clojure/clojure/1.10.0/clojure-1.10.0.pom from
Downloading: org/clojure/spec.alpha/0.2.176/spec.alpha-0.2.176.pom from
Downloading: org/clojure/pom.contrib/0.2.2/pom.contrib-0.2.2.pom from
Downloading: org/clojure/core.specs.alpha/0.2.44/core.specs.alpha-0.2.44.pom from
Downloading: org/clojure/clojure/1.10.0/clojure-1.10.0.jar from
Downloading: org/clojure/spec.alpha/0.2.176/spec.alpha-0.2.176.jar from
Downloading: org/clojure/core.specs.alpha/0.2.44/core.specs.alpha-0.2.44.jar from
Clojure 1.10.0
user=> ^D
$ /usr/local/bin/clojure -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} cider/cider-nrepl {:mvn/version "0.22.0-SNAPSHOT"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]'
Exception in thread "main" java.io.FileNotFoundException: Could not locate nrepl/cmdline__init.class, nrepl/cmdline.clj or nrepl/cmdline.cljc on classpath.
In that vein, if I remove "-SNAPSHOT" from the cider-nrepl,
$ /usr/local/bin/clojure -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} cider/cider-nrepl {:mvn/version "0.22.0"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]'
Downloading: nrepl/nrepl/0.6.0/nrepl-0.6.0.pom from
Downloading: nrepl/nrepl/0.6.0/nrepl-0.6.0.jar from
Error building classpath. Could not find artifact cider:cider-nrepl:jar:0.22.0 in central ( )
Humm... Seems I mistakingly installed "CIDER 0.22.0snapshot (package: 20190329.1924)"
cider is an installed package.
Status: Installed in ‘cider-20190329.1924/’ (unsigned). Delete
Version: 20190329.1924
Summary: Clojure Interactive Development Environment that Rocks
Requires: emacs-25, clojure-mode-5.9, pkg-info-0.4, queue-0.2, spinner-1.7, seq-2.16, sesman-0.3.2
Homepage:
Keywords: languages clojure cider
Other versions: 20190302.114 (installed), 20190329.1924 (melpa).
up to you. the snapshot version has the chance for breakages (as seen today) but if no one uses it then the melpa-stable version just shifts the risk to everyone rather than volunteers who run the melpa (snapshot) version
presumably you are running the melpa (not melpa-stable) version so you are in the snapshot version
i wish the names were inverted. ie, melpa and melpa-beta or something but it is what it is
Just to be clear, when I execute from emacs, "cider-jack-in", emacs puts this in Messages
[nREPL] Starting server via /usr/local/bin/clojure -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} cider/cider-nrepl {:mvn/version "0.22.0-SNAPSHOT"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]'...
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: Exception in thread "main" java.io.FileNotFoundException: Could not locate cider/nrepl__init.class, cider/nrepl.clj or cider/nrepl.cljc on classpath.
So you can see then that the "melpa" (snapshot) version of CIDER is asking for a "0.22.0-SNAPSHOT" -oh I see ( I read up on SNAPSHOT and maven), snapshot in maven speak means always fetch the latest.
the way its released is while you are creating 0.22.0 you release 0.22.0-SNAPSHOT and then once you are happy with it you release the 0.22.0 artifact
so there can be versions of 0.22.0-snapshot while you work on it and it changes and then a single 0.22.0 release
replace snapshot with "beta" "preview" or "test" in your head and it should make sense.