This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-03
Channels
- # announcements (35)
- # aws (20)
- # babashka (4)
- # beginners (88)
- # cider (9)
- # clara (1)
- # clj-kondo (6)
- # cljsrn (3)
- # clojure (107)
- # clojure-dev (7)
- # clojure-europe (99)
- # clojure-nl (3)
- # clojure-spec (9)
- # clojure-uk (2)
- # clojurescript (28)
- # core-async (53)
- # cursive (11)
- # datascript (1)
- # datomic (2)
- # emacs (20)
- # fulcro (3)
- # graalvm (4)
- # holy-lambda (18)
- # jobs (1)
- # kaocha (7)
- # leiningen (2)
- # lsp (25)
- # luminus (1)
- # membrane-term (52)
- # missionary (8)
- # nextjournal (19)
- # off-topic (16)
- # other-languages (3)
- # podcasts-discuss (2)
- # polylith (23)
- # re-frame (4)
- # reclojure (6)
- # remote-jobs (1)
- # rewrite-clj (36)
- # ring (1)
- # sci (10)
- # shadow-cljs (7)
- # spacemacs (5)
- # sql (20)
- # uncomplicate (1)
- # vscode (3)
- # xtdb (27)
I'd like to investigate this error from the clojurescript compiler, when requiring a namespace in the REPL.
Are there any options I can give to java or clojure to get a stack trace or other details?
Unexpected error compiling at (REPL:1).
Not supported: class cljs.repl.browser.BrowserEnv$fn__7901
That exception should be bound to *e
- just evaluate that to get the full stacktrace.
I think the exception is happening in ClojureScript's code (in Clojure), not in my cljs environment. *e
is nil.
Ah, hmm. Would be curious to poke around if you can come up with a minimal reproducible example.
I'll try to do that, but it's a weird one - some of my team it works fine, others not. This is why I was hoping to find some way of getting more details about the error so that I could poke it myself. Thanks though.
Is there a way to do something similar to this is Clojure?
//JavaScript
let cat = 'Miaow';
let dog = 'Woof';
let bird = 'Peet peet';
let someObject = {
cat,
dog,
bird
}
console.log(someObject);
//{
// cat: "Miaow",
// dog: "Woof",
// bird: "Peet peet"
//}
Seems to be simply:
(defmacro create-map
[& syms]
(zipmap (map keyword syms) syms))
(let [x 1 y 2 z 3] (create-map x y z))
;=> {:x 1 y 2 :z 3}
should we just do it in reverse way? (let [{:keys [a b c] :as v} {:a 1 :b 2 :c 3}] [v a b c])
Hello everyone, please tell me your opinion which one is better to use with clojurescript and reagent .. Bootstrap or Material UI ?
finally - a possible fix for the #js
literal issue in core.async https://github.com/clojure/core.async/pull/60/files
@alexmiller ^ merged, could use a core.async release - I went back through the tickets and saw that this resolved the previously reported cases and added them as tests
1.4.627 is on the way to maven
should show up here https://repo1.maven.org/maven2/org/clojure/core.async/
Will do shortly
is there a cljs equivalent to bound-fn
?
That's unfortunate. Thanks anyway.