-
-
Notifications
You must be signed in to change notification settings - Fork 653
Description
My conf. is Emacs 24.5 with bbatsov/prelude (prelude-clojure enabled in prelude-modules.el).
When nim-mode is updated with and BEFORE cider, I get the following error with cider-jack-in:
cider-jack-in: Invalid function: (repl-buff (cider-find-reusable-repl-buffer nil project-dir))
After this cider is broken permanently, restarting Emacs doesn't help.
For example I had these packages to update a few days ago:
Install these 3 packages (nim-mode-20160418.18, magit-20160418.1513, cider-20160418.1513)? (y or n)
As far as I can see packages are installed in reverse (Z-to-A) order, so nim-mode is always installed before cider.
So my workaround is simply to unselect nim-mode, install everything else, then install nim-mode last.
I don't know if it is possible to change package install order.
So I wiped .emacs.d completely; then put in it the latest prelude with just default prelude-modules.el.
Now nim-mode and cider are not installed, so I select one by one from list-packages. This procedure was repeated before each test.
- installed nim-mode first, and after it finished selected cider and installed that. Cider didn't work.
- installed nim-mode first, and after install restarted Emacs, then selected cider and installed it. Now cider works OK.
- installed cider first, didn't restart Emacs, then selected nim-mode and installed it. Cider works OK.
So the only case that breaks cider is installing nim-mode before cider in the SAME Emacs session.
(BTW, I'd like to have nim included in prelude-modules.el in the future.)
project.clj is empty i.e. default created with 'lein new app someapp'
And my profiles.clj is:
{:user {:plugins [[cider/cider-nrepl "0.13.0-snapshot"]]
:dependencies [ [org.clojure/clojure "1.8.0"]
[org.clojure/tools.nrepl "0.2.12"]]}}
Environment & Version information
CIDER 0.13.0snapshot (package: 20160423.2330), nREPL 0.2.12
Clojure 1.8.0, 1.8.0_66
Leiningen 2.6.1 on Java 1.8.0_66 Java HotSpot(TM) Client VM
Emacs 24.5
Windows 7 SP1 (32-bit)