This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-07-05
Channels
- # announcements (5)
- # babashka (2)
- # beginners (47)
- # calva (3)
- # cider (42)
- # clerk (5)
- # clj-commons (21)
- # clojure (145)
- # clojure-austin (25)
- # clojure-europe (14)
- # clojure-norway (9)
- # clojure-spec (7)
- # clojurescript (21)
- # datomic (4)
- # dev-tooling (4)
- # docker (5)
- # gratitude (5)
- # honeysql (6)
- # hyperfiddle (45)
- # jobs (1)
- # juxt (2)
- # malli (25)
- # meander (1)
- # mount (3)
- # other-languages (7)
- # pathom (7)
- # pedestal (1)
- # reagent (5)
- # reitit (20)
- # releases (2)
- # remote-jobs (1)
- # shadow-cljs (77)
- # squint (8)
- # tools-deps (34)
hello! I'm getting a repl exception:
:repl/exception!
;
; Execution error (Error) at (<cljs repl>:1).
; No protocol method IDeref.-deref defined for type cljs.core/PersistentArrayMap: {:style "color: red;"}
and I was wondering, what tools do I have to investigate this exception? stack trace? etc...You may want to show more code if you require help, but in general this style element doesn't look properly formatted. You can try this instead
{:style {:color "red"}}
how do you start your repl?
hmm calva jack-in -> shadow-cljs
targeting browser?
probably there is an error in the console. where you can find stacktrace
isn't there a way to investigate the exception from within the environment with the repl?
@U01M742UT8F thank you for your help 🙂 I'm more interested in tools to investigate exceptions and not in this particular exception
hm... looks like exception reporting is getting worst from how I remember it. Sorry, didn't use cljs for a while.
(cljs.repl/pst)
for some reason doesn't work for me 😕
(println (.-stack *e))
? there should be something better
I also tried *e but it's nil
for some reason 😕
let me try another exception
Does anyone know why (number? ##NaN) evaluates to true? What CAN I use to determine if a value is, in fact, a number?