Fork me on GitHub
#spacemacs
<
2018-02-01
>
wallydrag03:02:56

hello people, i have been using spacemacs for clojure projects for a while now. Suddenly jump-to-definition for clojure started to fail and revert back to dumb search

wallydrag03:02:26

also repl in spacemacs shows this warning CIDER's version (0.16.0-snapshot) does not match cider-nrepl's version (nil). Things will break!

wallydrag03:02:21

interestingly my lein profile has different versions of these things, so I am not sure from where spacemacs is picking up this version

ag03:02:29

@wallydrag are you jacking-in or using cider-connect?

wallydrag03:02:28

cider-connect

ag03:02:17

cider connect does not ensure al neccessary cider-middleware gets injected

ag03:02:37

you etiher outta jack-in or inject all necessary cider middleware yourself

wallydrag03:02:29

@ag where you able to fix jump to defn on your spacemacs

wallydrag03:02:11

I would like to use cider connect because I would already have repl server running for most of my projects

wallydrag03:02:55

also cider-jack-in fails on spacemacs, it is unable to start the repl server

wallydrag03:02:20

went through that doc as well 😕

ag03:02:22

try removing all cider and clojure-mode related dirs from elpa dir (or simply nuke it) and reinstall all the things

ag03:02:30

> my lein profile has different versions of these things your problem lies not in spacemacs

ag03:02:01

try commenting out things in lein profile and jack in

ag03:02:50

if you fix cider-jack-in, them maybe you can move back to cider-connect and fix the middleware

wallydrag03:02:48

1 - commented out my lein profile, restarted everything, did not work

wallydrag03:02:03

2 - deleted clojure layer, reinstalled again, did not work

wallydrag03:02:11

also i am getting these errors

ag03:02:34

not clojure layer... move entire elpa directory in ~/.emacs.d somewhere else. make sure you're using latest spacemacs. I would actually recommend switching to develop branch. ironically it is more stable

ag03:02:12

it will take sometime to reinstall all the packages.

ag03:02:07

cider-find-var is broken (and my guess would be) among other things like edn-format because cider has version conflict

ag03:02:51

this is what I'd do:

cd ~/.emacs.d
xargs rm -rf <.gitignore
git reset --hard
git pull --rebase
but first back up things (just in case)!!!

ag03:02:03

sometimes things get break legitimately (e.g. when Batsov deploys new version) then you may want to pin down the exact version of cider. But I don't think this is that case

wallydrag03:02:35

@ag so after 1 and 2 steps, what I did now is simply do a cider jack in, it was able to start server and did not connect, i did a cider connect on top of it and jump to definition works 😕

wallydrag03:02:38

ignore, it stopped working once i restarted emacs 🙁

wallydrag03:02:26

Alright, I am starting to doubt nrepl started by my code, cider-jack-in with cider connect on top of it is working

wallydrag03:02:42

anyways, thanks @ag for the help