This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-24
Channels
- # admin-announcements (2)
- # beginners (5)
- # boot (29)
- # cider (46)
- # cljsjs (1)
- # clojure (19)
- # clojure-quebec (1)
- # clojure-russia (73)
- # clojure-spec (30)
- # clojure-uk (23)
- # clojurescript (35)
- # datascript (12)
- # datomic (7)
- # emacs (26)
- # hoplon (168)
- # leiningen (7)
- # off-topic (2)
- # om (32)
- # perun (8)
- # protorepl (8)
- # ring (45)
- # specter (10)
- # test-check (2)
- # yada (6)
For some reason recent versions of cider no longer font-lock/highlight qualified functions from other namespaces. clojure.core gets highlighted and referred functions get highlighted but not qualified functions. some-namespace/wonderful-fn will not be highlighted. Is there a setting to control this or is this feature not working or is it my setup?
@malabarba: ok, I’ll check that.
Oy. I’ve run into and solved these sorts of errors before but I now for the life of me cannot remember what it was I did to correct them. The situation is me running lein trampoline ring server-headless
. Running merely lein trampoline repl :headless
presents no difficulty.
WARNING: CIDER's version (0.13.0-snapshot) does not match cider-nrepl's version (nil). Things will break!
and
WARNING: clj-refactor and refactor-nrepl are out of sync.
Their versions are 2.3.0-SNAPSHOT (package: 20160621.902) and n/a, respectively.
Everything looks fine in ~/.lein/profiles
and such. I’ve also checked my settings against the documentation provided at
but with no luck.Hm. Maybe you have things nested incorrectly in your profiles.clj
? Mine looks like
{:user {:plugins [[cider/cider-nrepl "0.12.0"]
;; Linters
[jonase/eastwood "0.2.3"]
[lein-ancient "0.6.10"]
[lein-bikeshed "0.3.0"]
[lein-cljfmt "0.5.3"]
[lein-kibit "0.1.2"]
[venantius/yagni "0.1.4"]
;; Documentation generators
[lein-codox "0.9.5"]]}}
Hm. The Cider docs specifically say the cider-nrepl
plug-in should be in {:repl … }
rather than :user
...
(Well, depending on which Emacs setup I’m on. Different ones seem to want different versions.)
Worse comes to worse, I can just launch the ring server separately from a REPL. I was just trying to conserve memory usage by having them all in one go.
'Be careful not to place this in the :user
profile, as this way CIDER's middleware will always get loaded, causing lein to start slower. You really need it just for lein repl
and this is what the :repl
profile is for.'
does anyone know how to load cider with a profile? Most tests don't run under the default profile and I would like to be able to run tests individually with cider, but i'm unsure how to load the correct profile
From the command-line, you can do stuff like lein with-profile [profile1, profile2] *task*
.
correct. Just wondering if there was a way to put cider into this mode, so that when running tests i could get the same results
@akiva: That warning could mean a number of different things. There's a section on the manual explaining all of the possibilities
it looks like you set a bunch of middleware and pass that into core's version of nrepl
@akiva https://cider.readthedocs.io/en/latest/troubleshooting/#cider-complains-of-the-cider-nrepl-version
i'm gonna try to resolve this one, and it makes it easier if i can run tests inside cider
but only 2 tests run in the default profile. Whereas 1100 or so run with the +test-clj
profile
It should be enough to do something like: (setq cider-lein-parameters (concat "+test-clj " cider-lein-parameters))
@malabarba, yep, I read that. My ~/.lein/profiles.clj
was already configured to match.