Last month, someone helped me get Sider to work on a Clojure project. I liked the functionality, especially M-. , cider-jump-to-var . But since then I have not been able to reproduce the correct behavior, both in the original project and in the new one, and the one who helped me adjust the outcome is no longer available.
In the original project, which I still checked, there is a line
[cider/cider-nrepl "0.7.0"]
under :dependencies my project.clj . When I add this line to my new project, run lein repl and cider-connect , I will get this message:
; CIDER 0.8.0alpha (package: 20141006.507) (Java nil, Clojure 1.6.0, nREPL 0.2.3) WARNING: The following required nREPL ops are not supported: classpath complete info inspect-start inspect-refresh inspect-pop inspect-push inspect-reset macroexpand ns-list ns-vars resource stacktrace toggle-trace undef Please, install (or update) cider-nrepl 0.8.0-snapshot and restart CIDER WARNING: CIDER version (0.8.0-snapshot) does not match cider-nrepl version (0.7.0)
Of course, when I go to the definition of a character (say first ), I get:
cider-ensure-op-supported: Can't find nREPL middleware providing op "info". Please, install (or update) cider-nrepl 0.8.0-snapshot and restart CIDER
Oddly enough, I get the same error when I change the version of cider/cider-nrepl to "0.8.0-SNAPSHOT" in project.clj .
But then I notice on the Cid-nrepl Github page that the cider/cider-nrepl should be in :plugins , not :dependencies . It was definitely not in my original project, but it worked somehow somehow. Great, so I am moving it to :plugins in my new project. This time the nrepl process starts without errors, but when I try to go to the definition, again, say, first , I get:
Symbol first not resolved
Now, if I try to return to 0.7.0 , I will get a shorter message when starting the cider:
WARNING: The following required nREPL ops are not supported: ns-list ns-vars undef Please, install (or update) cider-nrepl 0.8.0-snapshot and restart CIDER WARNING: CIDER version (0.8.0-snapshot) does not match cider-nrepl version (0.7.0)
... but I get the same "Character is not allowed first", as before.
This is really frustrating. I vaguely recall a message about a version mismatch when I was working on my original project, and the transition to definition function still worked. Now I canβt make it work for me. Any help would be greatly appreciated.
EDIT ADD:
Before starting the research described above, I removed and installed Cider from the list of my packages again. I also deleted ~/.m2/repository/cider between each step.
This morning I had a version of Cider 20141006.507 . An update is available, so now I have version 20141007.452 . The cider-version command returns only CIDER 0.8.0-snapshot . With [cider/cider-nrepl "0.8.0-SNAPSHOT"] in the :plugins section of my project.clj I still get Symbol <whatever> not resolved no matter what character I'm trying to execute.