-
-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cider-jack-in
fails reporting a syntax error in macroexpanding
#3339
Comments
Please include the Thanks! |
Here's the full error message:
|
And here is the
|
It boils down to this. As a first measure, I'd suggest making sure to install a full JDK (which includes the dev niceties CIDER requires) instead of a production JDK. Happens often in Linux distros. Per our documentation, the command you'd need is Cheers - V |
Cheers 🍻
It's hard to do so in a way that is actually clearer and robust. Thank you for the PR. Another part of the solution would be to hint users of the importance of a full JDK while creating an issue. Currently the issue template says:
Which is quite comprehensive but not infallible. Maybe in a future we can use Github Issue Forms. For instance try creating an issue in https://github.com/rm-hull/nvd-clojure You can't, without marking a specific checkbox. |
Expected behavior
M-x cider-jack-in
should start a working nREPL in an Emacs bufferActual behavior
The nREPL is started, but CIDER fails to connect to it. The error message is
followed by a lengthy stack trace.
Note: I tried the same with a real Clojure project, thus with a non-empty
deps.edn
. The initial part of the error message is then different, but there is always the "syntax error macroexpanding", with the same location referencecider/nrepl/inlined/deps/orchard/v0v11v0/orchard/java/parser.clj:1:1
.Steps to reproduce the problem
deps.edn
containing just{}
(i.e. no dependencies)deps.edn
in Emacs.M-x cider-jack-in
.Environment & Version information
CIDER version information
Lein / Clojure CLI version
Clojure CLI 1.11.1.1165
Emacs version
28.2
Operating system
Ubuntu 20.04 plus the Guix package manager
Emacs, CIDER, openjdk, clojure, clojure-tools installed via Guix (commit 0c6a7e1045cbd06336ef3699734a803a2e4038e5)
JDK distribution
The text was updated successfully, but these errors were encountered: