question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when start nREPL on new lein project

See original GitHub issue

Visual Studio Code

Version: 1.43.1 (user setup) Commit: fe22a9645b44368865c0ba92e2fb881ff1afce94 Date: 2020-03-18T07:01:20.184Z Electron: 7.1.11 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Windows_NT x64 10.0.18362

Steps to reproduce:

lein new app app-name
cd app-name
code . 

shows Starting nREPL… and then after 10 secs crashes (nREPL exited with code 1) and shows stacktrace in Output & Console.

Shows the errors Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1). Unable to resolve var: cider.nrepl/wrap-apropos in this context

If i start VSCode in a folder with just one standalone clojure file, they works

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
ErwanDLcommented, Apr 21, 2020

Having the exact same problem as lucasteles, Leiningen 2.9.3 on Java 13.0.2 Java HotSpot(TM) 64-Bit Server VM. I can start the nrepl from the command line by typing lein repl, but in VSCode the Starting nREPL... icon appears and after a moment I get an error notification nREPL exited with code 1.

Output panel logs :
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Syntax error compiling var at (/private/var/folders/88/26xg7d096x7gztffx44yb9f80000gp/T/form-init6989802207003301932.clj:1:9089).
Unable to resolve var: cider.nrepl/wrap-apropos in this context

Full report at:
/var/folders/88/26xg7d096x7gztffx44yb9f80000gp/T/clojure-4814943021023505629.edn
Subprocess failed (exit code: 1)
nREPL exited with code 1

EDIT : Downgrading the version of cider-nrepl has solved the issue for me. It was previously in 0.25-alpha, and I downgraded it to 0.22 by adding :plugins [[cider/cider-nrepl "0.22.1"] to my project.clj file.

1reaction
avlicommented, Mar 19, 2020

Which Leiningen version do you use? It seems to be the same issue as https://github.com/clojure-emacs/cider-nrepl/issues/608.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - nREPL
Contents. Middleware; Warnings when Starting nREPL; Leiningen; The REPL Task Crashes; Boot; The REPL Task Crashes; nREPL Configuration Files are Ignored.
Read more >
cider-nrepl error when running project - Stack Overflow
clj Cider run fine, but M-., cider-jump-to-var function not work. update. i created new minimal lein app: $lein deps :tree [clojure-complete " ...
Read more >
Introduction to Leiningen for Clojure - Baeldung
Leiningen is a modern build system for our Clojure projects. It's also written and configured entirely in Clojure.
Read more >
CIDER jack-in to Clojure CLI projects from Spacemacs
The same error was seen when looking at the output in the *messages* buffer, ( SPC b m ). Starting new CIDER session...
Read more >
Troubleshooting :: CIDER Docs
REPL not starting. Make sure that your CIDER version matches your cider-nrepl version. Check the contents of the *Messages* buffer for CIDER-related errors....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found