This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-19
Channels
- # aws-lambda (1)
- # beginners (35)
- # cider (7)
- # cljsjs (2)
- # clojure (48)
- # clojure-austria (1)
- # clojure-conj (9)
- # clojure-dev (8)
- # clojure-india (6)
- # clojure-italy (12)
- # clojure-nl (8)
- # clojure-norway (3)
- # clojure-spec (9)
- # clojure-uk (92)
- # clojurescript (103)
- # community-development (7)
- # cursive (15)
- # datomic (75)
- # devcards (3)
- # emacs (3)
- # events (1)
- # fulcro (129)
- # hoplon (4)
- # immutant (2)
- # jobs (10)
- # leiningen (9)
- # off-topic (4)
- # onyx (2)
- # re-frame (45)
- # reagent (39)
- # reitit (40)
- # remote-jobs (4)
- # ring (2)
- # ring-swagger (9)
- # shadow-cljs (17)
- # tools-deps (31)
I'm trying to run karma tests, but I'm getting this: Uncaught ReferenceError: shadow is not defined\nat
ideas what it can be?
nevermind, bad karma config
@thheller I'm playing around with karma watch + ci build watch
they almost work, but seems like karma detects changes to the file while it's been flushed, causing syntax errors when it tries to read
do you think would be possible to make this change more atomic? like writing to a temp file and then renaming instead of flushing directly in the final path
sure, you can mess arround with that https://github.com/thheller/shadow-cljs/blob/master/src/main/shadow/build/targets/karma.clj#L94-L96
I see you left a comment on source maps, is that hard to get there? I think this could be very useful to debug erros from CI
humm, so maybe put a flag behind it
well, the compilation here takes about 60 seconds, adding a few might not be that bad
ah, no, but that's a CI build, the watch on it was most for fun
I usually run the tests in another way in dev
@thheller is there a way to remove preloads from a specific module? I'm starting to work with web workers, but it's adding the preloads which I don't need there, is there a way to do that on the same build, or I need to create a new one?
I added this to my shadow-cljs.edn
file
:dependencies [[cider/cider-nrepl "0.17.0-SNAPSHOT"]
[refactor-nrepl "2.4.0-SNAPSHOT"]]
but trying to connect cider to the nrepl port results in
WARNING: CIDER's version (0.17.0-snapshot) does not match cider-nrepl's version (nil). Things will break!
More information.
WARNING: clj-refactor and refactor-nrepl are out of sync.
Their versions are 2.4.0-SNAPSHOT (package: 20180420.223) and n/a, respectively.
You can mute this warning by changing cljr-suppress-middleware-warnings.