Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Unable to resolve var: refactor-nrepl.middleware/wrap-refactor when starting 0.17 #2284
Cider does not start after upgrading from 0.16 to 0.17 (no other changes). The backtrace is included below. I was unable to determine the cause. I do not have tools.nrepl in my project.clj.
Steps to reproduce the problem
Environment & Version information
CIDER version information
The project where I am doing the
Linux Ubuntu 16.04.4 LTS.
Thank you, indeed that was the problem -- I didn't know I was using a version of refactor-nrepl! It wasn't in my project.clj nor
Thanks for your help!
I am getting this issue, the suggest fix had other issues. I get this on a completely fresh install of emacs, with a completely fresh install of spacemacs. I'm new to both clojure and emacs, I'm just wondering if there is a way to fix this as it's incredibly irritating
I don't use Spacemacs, so I've got no idea what exactly it's bundling together. Generally it's best to just run CIDER without any other plugins if you're new to Emacs as their interactions can be confusing for newcomers. It's impossible for a simple disabling of
I just came across this. Here is what fixed it for me on a new lein project:
This worked for me as well on spacemacs release branch. Thanks @doyougnu !!
I am on leiningen 2.9.1
I am guessing Spacemacs deleted nrepl when I went to run the cider jack in command. I am not sure why emacs/spacemacs is allowed to alter my configuration on my system. Because Space basically just broke my leiningen install just from running cider.
I can post more details if needed. But I am not sure if this is cider's fault. My first insinct is...
Don't allow Spacemacs or emacs to delete any packages.
Caused by: java.lang.RuntimeException: Unable to resolve var: refactor-nrepl.middleware/wrap-refactor in this context
Caused by: java.io.FileNotFoundException: Could not locate clojure/tools/nrepl/server__init.class, clojure/tools/nrepl/server.clj or clojure/tools/nrepl/server.cljc on classpath.
I tried to reinstall lein with brew. But it's not putting everything back to how I had it. The lein install is now broken. Let me check if I can force homebrew to reset everything for lein.
I tried adding the nrepl package to my project... but it does not work...
In the meantime, my main suggestion would be to run emacs/spacemacs on a virtualized desktop that you can take snapshots of. And reset to your snapshot in event that your install becomes foobared.