This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-06
Channels
- # announcements (1)
- # babashka (7)
- # beginners (93)
- # bristol-clojurians (1)
- # cider (7)
- # clj-kondo (42)
- # cljs-dev (9)
- # clojure (67)
- # clojure-europe (4)
- # clojure-france (4)
- # clojure-germany (2)
- # clojure-italy (3)
- # clojure-nl (10)
- # clojure-uk (62)
- # clojurescript (11)
- # clojurex (3)
- # conjure (77)
- # cursive (16)
- # datomic (105)
- # docker (4)
- # editors (3)
- # events (5)
- # fulcro (34)
- # jobs (1)
- # juxt (7)
- # kaocha (7)
- # lambdaisland (3)
- # lein-figwheel (2)
- # leiningen (19)
- # malli (14)
- # meander (6)
- # mid-cities-meetup (6)
- # off-topic (20)
- # pedestal (2)
- # reagent (17)
- # reitit (7)
- # remote-jobs (1)
- # shadow-cljs (17)
- # spacemacs (23)
- # specter (2)
- # tools-deps (34)
hey, I guess this is a common thing, but I'm getting the following error when trying to run a test via cursive on a shadow setup:
Error in phase :compilation
Calls to `require` must appear at the top-level. at line 1 cljs/user.cljs
Just checking, are you trying to use the Cursive test integration? That only works for Clojure at present.
Is there a way to print exceptions in the REPL in such a way so that stacktrace items are turned into hyperlinks that direct you to the files within your project?
I know that throw
does that, but I would like to have something else.
Most ways of printing exceptions should be hyperlinked, from .printStackTrace
to clojure.stacktrace/print-stack-trace
Nice, thanks! The regular prn
does not work or course, and I completely forgot about the built-in .printStackTrace
.
Yes, I’m still not sure how best to hyperlink the datafied forms, because they’re not formatted consistently when output.
Where does the inconsistency come from? print-throwable
seems to write the strings without any leeway.