Closed metayan closed 7 months ago
Hi!
Thank you for using CIDER (and presumably, enrich-classpath?).
There's not enough information in this issue for it to be actionable. Plese attach stacktraces if any. The issue should also be reproducible in a project that we can clone.
Feel free to reopen the issue as you gather that info.
There's not enough information in this issue for it to be actionable. Plese attach stacktraces if any. The issue should also be reproducible in a project that we can clone.
Probably a misunderstanding.
I'm running make repl
in the cider-nrepl
project directory - as is described in the README:
I'm actually trying to investigate an issue in cider
.
Sorry about the misunderstanding - I thought this issue had been created in https://github.com/clojure-emacs/cider
Either way, make repl
works for me.
But lein repl
should work as well. Features related to enrich-classpath
won't be present, however, most times one doesn't need to debug that.
make repl
works for me.
Can you please reveal which version of Clojure/Lein/Java it works on?
But
lein repl
should work as well.
lein repl
reports roughly the same here:
Composite profiles containing maps are strongly recommended against.
Support will be removed in future versions of Leiningen due to subtle
unexpected behavior. Move the map from the composite profile to its own
top-level named profile to avoid issues.
[:test
{:repl-options
{:nrepl-middleware
[cider.nrepl/wrap-apropos cider.nrepl/wrap-classpath cider.nrepl/wrap-complete
cider.nrepl/wrap-content-type cider.nrepl/wrap-debug cider.nrepl/wrap-enlighten
cider.nrepl/wrap-format cider.nrepl/wrap-info cider.nrepl/wrap-inspect
cider.nrepl/wrap-macroexpand cider.nrepl/wrap-ns cider.nrepl/wrap-out
cider.nrepl/wrap-profile cider.nrepl/wrap-refresh cider.nrepl/wrap-resource
cider.nrepl/wrap-slurp cider.nrepl/wrap-spec cider.nrepl/wrap-stacktrace
cider.nrepl/wrap-test cider.nrepl/wrap-trace cider.nrepl/wrap-tracker
cider.nrepl/wrap-undef cider.nrepl/wrap-version cider.nrepl/wrap-xref]}}]
Error: Could not find or load main class clojure.main
Caused by: java.lang.ClassNotFoundException: clojure.main
Any idea what could be the cause?
The Clojure version is managed by Leiningen
$ java -version
java version "21.0.1" 2023-10-17 LTS
$ lein version
Leiningen 2.9.10
Perhaps try a git clean -fdx
? (commit any changes beforehand for them not to be lost)
I also heard that the most recent Lein broke some plugins https://codeberg.org/leiningen/leiningen/pulls/39 - don't know if we're affected
Hope it helps!
Thanks. Had a clean repo already.
lein repl
works with Leiningen 2.9.10 and 2.10.0
Fails with 2.11.0 and 2.11.1
This issue should probably be reopened with the new title, but it doesn't seem like I can do that.
Happy we got it!
This issue should probably be reopened with the new title, but it doesn't seem like I can do that.
There's the open PR in Lein. There's nothing we can do about it but wait. Feel free to ping them
Ah, alright. Thanks for clarifying.
Expected behavior
REPL should appear
Actual behavior
Steps to reproduce the problem
Environment & Version information
cider-nrepl version
Current master v0.45.0 v0.44.0
Java version
Operating system
macOS 10.15.7
Linux Devuan Daedalus
Leiningen & Clojure versions
Leiningen 2.11.1 on Java 19.0.1 OpenJDK 64-Bit Server VM
Clojure CLI version 1.11.1.1435