This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-23
Channels
- # 100-days-of-code (2)
- # aws (1)
- # beginners (105)
- # boot (36)
- # calva (4)
- # cider (56)
- # clara (37)
- # cljdoc (16)
- # cljs-dev (19)
- # clojure (44)
- # clojure-dev (20)
- # clojure-italy (24)
- # clojure-nl (3)
- # clojure-serbia (2)
- # clojure-spec (15)
- # clojure-uk (44)
- # clojurescript (41)
- # code-reviews (3)
- # core-async (12)
- # cursive (24)
- # datomic (4)
- # emacs (1)
- # figwheel-main (10)
- # fulcro (168)
- # funcool (2)
- # hyperfiddle (15)
- # jobs (2)
- # jobs-discuss (79)
- # juxt (19)
- # lein-figwheel (1)
- # leiningen (2)
- # luminus (14)
- # mount (8)
- # nrepl (9)
- # off-topic (9)
- # other-languages (1)
- # pathom (32)
- # reitit (6)
- # ring-swagger (3)
- # shadow-cljs (10)
- # slack-help (11)
- # spacemacs (20)
- # sql (29)
- # tools-deps (28)
- # vim (29)
- # yada (4)
Seems like vim-fireplace has some issues with Clojure 1.10.0-beta4 😞
Normal evaluation seems to work, but whenever I try to print a stack trace using :Eval (clojure.repl/pst)
or just *e
from vim-fireplace (after some exception happened), I always get a NullPointerException (always the same one below) instead of the actual exception/trace.
:Eval (clojure.repl/pst)
NullPointerException
user$eval7782.invokeStatic (:1)
user$eval7782.invoke (:1)
clojure.lang.Compiler.eval (Compiler.java:7172)
clojure.lang.Compiler.eval (Compiler.java:7135)
clojure.core/eval (core.clj:3206)
clojure.core/eval (core.clj:3202)
clojure.main/repl/read-eval-print--8898/fn--8901 (main.clj:309)
clojure.main/repl/read-eval-print--8898 (main.clj:307)
clojure.main/repl/fn--8907 (main.clj:332)
clojure.main/repl (main.clj:332)
clojure.main/repl (main.clj:233)
clojure.tools.nrepl.middleware.interruptible-eval/evaluate/fn--811 (interruptible_eval.clj:87)
Can someone else try? If you get the same problem I'll enter an issue for vim-fireplace
@jkr.sw Did you try without cider-nrepl? Could be useful to check that find where the problem is Or maybe try with the new nrepl?
Cider-nrepl is generic nrepl extension which fireplace will use if it is available
I'll try with empty profiles.clj, although I don't have cider-nrepl or any other nrepl deps there
*e
and pst
work for me but (throw (ex-info "Foo" {}))
just hangs for me with 1.10 but works in 1.9
That doesn't hang for me, but I get the *e problem even with minimal profiles.clj / project.edn
doing other things that throw exceptions, like (+ nil nil)
also hang
And this is using nrepl 0.4.5
how do I make "lein repl" use the new version? seems like it's using nREPL 0.2.13 for me
leiningen 2.8.1 should use 0.4.1
And probably you can add up-to-date dependency to the project.clj to update it
$ lein -version Leiningen 2.8.1 on Java 1.8.0_171 OpenJDK 64-Bit Server VM $ lein repl nREPL server started on port 41207 on host 127.0.0.1 - <nrepl://127.0.0.1:41207> REPL-y 0.3.7, nREPL 0.2.13
seems like using cider-nrepl 0.18.0 in profiles.clj fixed the problem for me - no hangs and correct stack traces, although now it's using nREPL 0.2.12 for some reason
thanks @juhoteperi 🙂
Well I'm back to Clojure 1.9.0 for now. Maybe other vim users can find a working configuration or investigate more.
i randomly get tons of hangs too. haven't figured out why. like 50% of cpr
or cpp
will result in an error. i just keep running it till it works, so it's very intermittent. i'm on lein 2.8.1 too
also seems way better on my other macbook with same version of lein working on the same project
ah, that one works well for me. maybe try if it works better with or without cider-nrepl 0.18.0 in your profiles.clj
i've also been running this branch of vim-fireplace https://github.com/tpope/vim-fireplace/pull/323