This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-03-04
Channels
- # adventofcode (6)
- # announcements (1)
- # aws (18)
- # beginners (104)
- # boot (11)
- # cljsrn (31)
- # clojure (49)
- # clojure-dev (16)
- # clojure-europe (2)
- # clojure-greece (9)
- # clojure-houston (1)
- # clojure-italy (12)
- # clojure-nl (3)
- # clojure-spec (46)
- # clojure-uk (148)
- # clojurescript (12)
- # community-development (13)
- # core-async (7)
- # cursive (35)
- # data-science (13)
- # datomic (70)
- # events (1)
- # fulcro (22)
- # hyperfiddle (1)
- # jobs-discuss (10)
- # kaocha (3)
- # off-topic (7)
- # om (2)
- # other-languages (32)
- # parinfer (1)
- # portkey (4)
- # re-frame (3)
- # reitit (12)
- # shadow-cljs (49)
- # spacemacs (1)
- # specter (6)
- # sql (5)
- # tools-deps (58)
Hm... when starting the shadow-cljs server it tells me the nrepl-middlware can't be found on the classpath. How would I debug this? The dependency is added to the [shadow-cljs.edn](https://github.com/heyarne/airsonic-ui/blob/53748941c0d1b5439ff5774fe9e872c5ded06d3d/shadow-cljs.edn#L18).
Also CIDER seems to pass the dependency explitly as well: [nREPL] Starting server via /usr/bin/npx shadow-cljs -d nrepl:0.5.3 -d cider/piggieback:0.3.10 -d refactor-nrepl:2.4.0 -d cider/cider-nrepl:0.20.0 server...
hmm you probably need to update shadow-cljs. there were a bunch of changes in nrepl
and cider-nrepl
not too long ago and I believe nrepl 0.6.0
is required now
probably also need to bump cider-nrepl to 0.20.0 since the CLI inject adds that version
Goodday everyone, was wondering if there is an idiomatic way of recognising I am either in a development build or I am performing a release build in shadow-cljs. Mainly to configure timbre and to disable some functionality I want in the dev builds vs production builds
I recommend using https://shadow-cljs.github.io/docs/UsersGuide.html#closure-defines
you can also use goog.DEBUG
which is a built-in closure-define which will be false in release
builds
you can also use :preloads
if you want to add namespace you'd rather not use in a release
build. https://shadow-cljs.github.io/docs/UsersGuide.html#_preloads
hey - i am having some problem with shadow and httpurr (or probably promesa) when using advanced compilation
I guess some sort of extern failure
turn on externs inference https://shadow-cljs.github.io/docs/UsersGuide.html#infer-externs
seems to be the same with :infer-externs :auto
but yeah that tells you that .caught
is getting renamed when it shouldn't but it seems to be something in promesa
you can fix this via https://shadow-cljs.github.io/docs/UsersGuide.html#_simplified_externs
yeah, i was hoping it was some sort of known problem with promesa 🙂
let me see if i can get it working with the custom externs first, but yes - :advanced is not really needed for node, so if push comes to shove...
perfect, worked with adding two externs - caught and on 🙂 --pseudo-names was excellent
After adding a lib in the package.json, how do I require it in my cljs file?
👍 @thheller I would that example more prominently 😄
any cider users encountered this with cider-nrepl 0.21.0 or later?
[2019-03-05 00:14:50.420 - WARNING] :shadow.cljs.devtools.server/nrepl-ex
CompilerException java.io.FileNotFoundException: Could not locate nrepl/middleware/caught__init.class or nrepl/middleware/caught.clj on classpath., compiling:(cider/nrepl.clj:1:1)
I think it must be included with the newest shadow-cljs, since it works just by bumping shadow.
I somehow thought shadow-cljs updated it self automatically, is that featured turned off now?