This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-10
Channels
- # announcements (6)
- # architecture (2)
- # babashka (30)
- # beginners (90)
- # calva (21)
- # cider (22)
- # clj-kondo (27)
- # cljs-dev (7)
- # clojure (132)
- # clojure-europe (51)
- # clojure-nl (12)
- # clojure-norway (3)
- # clojure-spec (3)
- # clojure-uk (5)
- # clojurescript (69)
- # cloverage (9)
- # conjure (5)
- # core-async (54)
- # cursive (14)
- # datomic (34)
- # emacs (7)
- # fulcro (10)
- # graalvm (40)
- # graalvm-mobile (2)
- # gratitude (2)
- # improve-getting-started (1)
- # introduce-yourself (1)
- # jobs-discuss (61)
- # leiningen (5)
- # malli (6)
- # off-topic (59)
- # pathom (11)
- # polylith (38)
- # reagent (3)
- # reitit (3)
- # rewrite-clj (3)
- # shadow-cljs (53)
- # tools-build (35)
- # transit (8)
- # vim (62)
- # web-security (26)
- # xtdb (4)
Hmm, wonder if there's a way to copy&paste a stack trace from say logs of a server into Emacs buffer and make the lines navigable
Perhaps cider--render-stacktrace-causes
could be used? https://github.com/clojure-emacs/cider/blob/65a23e54227e3575f5a909dcfbdbbaef70d1438b/cider-eval.el#L456
But I have no idea how O:-).
yeah kinda realised that cider gets stacktrace data from nrepl, but if I only have a text presentation, need probably to actually parse it
it's ok to also just read the stacktrace, somehow had this idea that what about making it navigable when pasting into emacs :)
When cider spits out an error in the repl (e.g. a "unable to resolve a symbol" error when I try to call a non-existing function) it seems to often also show another error regarding "Cannot open <nil> as a reader".
have I messed up something in my cider setup or nrepl middlewares or something?
ah the stacktrace says it, you're not running a recent-enough cider-nrepl the error comes from Orchard, check out https://github.com/clojure-emacs/orchard/blob/master/CHANGELOG.md#091-2022-01-17 it has the precise fix!
CIDER 1.3.0-snapshot (package: 20220204.917)
great, thanks 👍
is there a source for finding out "I'm running the latest cider, what should my lein profiles look like wrt. nrepl/piggieback etc?"?
Not that I know. Maybe you can run https://github.com/liquidz/antq#leiningen-as-a-plugin which will take into account ~/.lein/profiles.clj
Running latest is generally always safe, unless it has a suffix like alpha
Is there an easy way to specify the nrepl port in my .dir-locals.el
for when I'm connecting with cider-connect-cljs
? Even better would be if I could tell it to look in .shadow-cljs/nrepl.port
for the number. I've been looking through the docs and elisp code and haven't found anything.
One of these perhaps? https://github.com/clojure-emacs/cider/blob/e8b582e1f28b27cdb0574e0f9361cbb9eb62afd0/cider.el#L168-L188 There's also https://github.com/clojure-emacs/cider/issues/3140 which seems quite closely related