This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-03
Channels
- # aleph (7)
- # announcements (6)
- # babashka (34)
- # beginners (5)
- # calva (1)
- # cider (3)
- # clerk (11)
- # clj-http (1)
- # clj-kondo (35)
- # clojars (6)
- # clojure (114)
- # clojure-australia (1)
- # clojure-brasil (2)
- # clojure-europe (73)
- # clojure-hamburg (3)
- # clojure-nl (1)
- # clojure-norway (27)
- # clojure-uk (4)
- # events (3)
- # graalvm (13)
- # gratitude (4)
- # helix (17)
- # hoplon (1)
- # hyperfiddle (65)
- # instaparse (4)
- # jobs-discuss (6)
- # lsp (2)
- # meander (2)
- # rdf (4)
- # re-frame (51)
- # reitit (28)
- # releases (1)
- # sci (20)
- # shadow-cljs (9)
- # tools-deps (4)
- # xtdb (44)
I don't play on the cljs side much, but shouldn't this work?
> (require '[cljs.repl :refer [apropos]])
nil
> (apropos "some")
Unexpected error (AssertionError) macroexpanding cljs.repl/apropos at (<cljs repl>:1:1).
Assert failed: (symbol? ns)
This is under cider-repl cljs:node
Same problem with :refer-macros
many of the cljs.repl functions assume some built-in internal compiler thing that shadow-cljs maybe doesn't emulate properly
don't know what it is in this case, feel free to open an issue. can't check right now.
funcool/promesa has a function 'extract' that isn't found, and I don't see why. I tried the following in a fresh user-id also, so it I don't think it is a problem with my configuration: npx create-cljs-project promesa-test cd promesa-test npm install Replace the existing shadow-cljs.edn with just this: {:dependencies [[funcool/promesa "10.0.594"]]} and run: npx shadow-cljs browser-repl cljs.user=> (require '[promesa.core :as p]) nil cljs.user=> promesa.core ; See what is exported <<a bunch of stuff but not extract>> cljs.user=> (-> (p/resolved 111) (p/then #(println %))) 111 #<Promise[~]> cljs.user=> (-> (p/resolved 111) (p/extract)) ------ WARNING - :undeclared-var ----------------------------------------------- Resource: <eval>:1:23 Use of undeclared Var promesa.core/extract --------------------------------------------------------------------------------
maybe it was added recently? the source file from that jar doesn't have anything named extract