This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-20
Channels
- # announcements (2)
- # architecture (5)
- # beginners (118)
- # cider (5)
- # clara (13)
- # cljdoc (8)
- # cljs-dev (49)
- # cljsjs (2)
- # clojure (107)
- # clojure-dev (9)
- # clojure-europe (3)
- # clojure-italy (58)
- # clojure-japan (2)
- # clojure-nl (6)
- # clojure-spec (89)
- # clojure-uk (27)
- # clojurescript (9)
- # core-async (33)
- # cursive (2)
- # datascript (2)
- # datomic (31)
- # duct (4)
- # emacs (1)
- # events (1)
- # figwheel-main (1)
- # fulcro (69)
- # hoplon (7)
- # hyperfiddle (16)
- # incanter (4)
- # instaparse (4)
- # kaocha (1)
- # mount (2)
- # nrepl (19)
- # off-topic (40)
- # onyx (6)
- # other-languages (3)
- # pedestal (2)
- # re-frame (48)
- # reagent (2)
- # reitit (10)
- # ring-swagger (9)
- # shadow-cljs (63)
- # spacemacs (13)
- # sql (8)
;; Clojure 1.10.0-beta6
(defn f [] (/ 1 0))
(f)
;; Execution error (ArithmeticException) at user$f/invokeStatic (REPL:1).
;; Divide by zero
Is this user$f/invokeStatic
intentional? I want it like user/f
, as clojure.spec.test.alpha
does here https://github.com/clojure/spec.alpha/blob/2329bb2d869ce59d92a401082587cc82edfce95a/src/main/clojure/clojure/spec/test/alpha.clj#L88-L93In execution phase errors, you don’t have the compiler’s context, you’re just working from a java stack trace
But we could probably do something like that
If you wanted to file a jira, that would be helpful
Ideally the current namespace could be taken into account. If the current namespace (`user`) is the same as the namespace of the stacktrace element that is being called, there is no need to print it. So the error could read:
Execution error (ArithmeticException) at f (REPL:1).
nah, I think that’s too special
@alexmiller Thanks! You’re an amazing fast worker! 😆