This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-27
Channels
- # aleph (1)
- # aws (2)
- # beginners (69)
- # boot (79)
- # braid-chat (1)
- # cider (221)
- # clara (13)
- # cljs-dev (9)
- # cljs-edn (1)
- # cljsrn (7)
- # clojure (128)
- # clojure-chicago (1)
- # clojure-russia (196)
- # clojure-sanfrancisco (1)
- # clojure-uk (13)
- # clojurescript (166)
- # community-development (2)
- # css (2)
- # cursive (8)
- # datomic (4)
- # emacs (11)
- # hoplon (54)
- # instaparse (2)
- # jobs (16)
- # jobs-discuss (54)
- # jobs-rus (7)
- # luminus (4)
- # off-topic (33)
- # om (37)
- # onyx (8)
- # proton (10)
- # quil (8)
- # re-frame (29)
- # reagent (7)
- # remote-jobs (2)
- # untangled (140)
- # yada (1)
@plexus: eldoc is not enabled by default, but just enabling eldoc-mode works out of the box now
Hi all, is there some magic config to show ClojureScript/JS exceptions in emacs when evaling expressions by piggyback?
Is there a way to prevent closing parens being on their own line? Want to have it automatically enforced.
@rmuslimov: For cljs i see exceptions in repl, but not in error popup (like in clojure)
So i eval expression, awaiting for result, but nothing happens if exception - it would be nice to see red colored popup.
Hey, I was wondering if someone could quickly point me to the font face for inline evaluation? I can't read it right since I'm using a white font
arghh, it happened again. I switched to another machine with an existing cider version, removed the ~/.emacs.d
dir, pointed to melpa
, refreshed packages, and installed cider 12.
The repl won't start cider-jack-in
though, reporting "Cannot open load file: no such file or directory, cl-generic". This is using Emacs 25.0.50.1.
What is the best way to "start fresh" with cider 12?
it's mostly stating: cider-apropos.el:28:1:Error: Cannot open load file: no such file or directory, cl-generic
installing cl-generic
succeeds but then attempting to install cider yields:
Package 'highlight-0' is unavailable
ok, I removed emacs and reinstalled emacs. re-installed cider, and I get a cider repl now... with a warning that the cider version 0.12.0 does not match cider-nrepl's version (nil). Things will break! No hunting around for where in the heck to set cider-nrepl version (thought I didn't need that..)
ok, nuked all ~/.emacs.d/elpa dirs related to clojure and cider and re-installed, this time via package-list-packages
, now everything works again. Maybe there is something weird with package-install
, which didn't work for me. All good now.
huh. Despite the cider repl, it does still say
|WARNING: CIDER's version (0.12.0) does not match cider-nrepl's version (nil). Things will break!
how to fix that? I don't set that anywhere at all.. http://cider.readthedocs.org/en/latest/installation/ doesn't seem to help(defproject mapviz "0.0.1-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url ""}
:dependencies [[org.clojure/clojure "1.8.0"]
[rhizome "0.2.5"]
])
I've tried:
(defproject mapviz "0.0.1-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url ""}
:dependencies [[org.clojure/clojure "1.8.0"]
;; [rhizome "0.2.5"]
])
nope still gives the warning. project.clj contains only clojure 1.8.0 and the core.clj file contains (ns mapviz.core), and nothing else
;; Connected to nREPL server -
;; CIDER 0.12.0 (Seattle), nREPL 0.2.12
;; Clojure 1.8.0, Java 1.8.0_20
WARNING: CIDER's version (0.12.0) does not match cider-nrepl's version (nil). Things will break!
before the connection I see:
Starting nREPL server via lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.12\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.12.0\"\] -- repl :headless...
Another idea might be to make sure that ~/.m2/repository/cider/cider-nrepl/
only has one subdirectory 0.12.0
(I had to program my .emacs.d
to auto-detect whether to install stuff because I had to wipe that so many times)
wow that might be it!
$ ls -1 ~/.m2/repository/cider/cider-nrepl/
0.10.0-SNAPSHOT/
0.10.1/
0.11.0/
0.12.0/
0.2.7/
0.7.0/
0.8.1/
0.8.2/
0.9.1/
Interesting though that it believes the version is nil
...
WARNING: CIDER's version (0.12.0) does not match cider-nrepl's version (nil). Things will break!
there should be some kind of sanity clean everything
mode before starting the install...
I don't know things only started working for me with 0.12.0
last month I was in your boat
Sorry buddy. I suppose this is a bridge too far, but here's my Makefile for my .emacs.d file where I wrote "install" to nail this dumb problem
In particular if something is depending on tools.nrepl
or cider-nrepl
then you'll still have lein hit the wrong versions of things
I also have a ~/lein/profiles.clj that might be interfering...
{:user {:plugins [
[lein-ancient "0.5.5"]
[criterium "0.3.1"]
[http-kit/lein-template "1.0.0-SNAPSHOT"]
[lein-gorilla "0.3.4"]
[lein-try "0.4.3"]
]
}
}
the function cider--connected-handler
is what sets up the communication. It calls (cider--check-middleware-compatibility)
to check the compatibility. This is what prints the message that you are seeing. It may be worth your while to instrument the cider--check-middleware-compatibility
function to see what it sees
after removing the ~/.lein/profiles.clj, it reports now:
$ lein deps :tree
[clojure-complete "0.2.4" :exclusions [[org.clojure/clojure]]]
[org.clojure/clojure "1.8.0"]
[org.clojure/tools.nrepl "0.2.12" :exclusions [[org.clojure/clojure]]]
same warning... WARNING: CIDER's version (0.12.0) does not match cider-nrepl's version (nil). Things will break!
user> *clojure-version*
{:major 1, :minor 8, :incremental 0, :qualifier nil}
user> (clojure-version)
"1.8.0"
user>
I'm confused...
user> (cider-check-required-version)
CompilerException java.lang.RuntimeException: Unable to resolve symbol: cider-check-required-version in this context, compiling:(*cider-repl mapviz*:44:6)
you should be able to just press n
to keep stepping next and c
to continue or q
to quit
it'll highlight the expression that its on and display the value. its actually quite nice and easy
if you instrumented the function with C-u C-M-x
then when you run cider-jack-in
it will launch the debugger
I'm basically launching a bare lein project and launching cider, and seeing the warning. that's it.
well, the file you want is in cider.el in the elpa directory where emacs downloads its packages
absolutely. it seems really complicated but lots of smart and creative people have been working on it for a long time
the fun thing is that you get used to bouncing around to the source. basically, if emacs knows about it, C-h C-f
will navigate to it
yes, I was in my core.clj file though, and that wouldn't work. From *scratch* it's nice.
then you'll end up cloning the git repo, adding that location to your load path, and then running your own custom cider
yes, interestingly the cider-repl mostly works (so far) despite the warning. Also interested in digging into understanding cider.el but that will be a slow process to ease into over time
@aaelony: you're not the first to inexplicably see that warning. Maybe there's something wrong with the checker function.
Evaluation can work even without the cider midddleware, but if documentation works then you definitely have the midddleware.