This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-12
Channels
- # adventofcode (6)
- # beginners (148)
- # boot (5)
- # calva (1)
- # cider (10)
- # cljdoc (10)
- # cljs-dev (8)
- # cljsrn (10)
- # clojure (180)
- # clojure-dev (24)
- # clojure-europe (2)
- # clojure-finland (1)
- # clojure-italy (32)
- # clojure-losangeles (1)
- # clojure-nl (40)
- # clojure-spec (10)
- # clojure-uk (44)
- # clojured (4)
- # clojurescript (88)
- # community-development (33)
- # core-async (7)
- # cursive (19)
- # datomic (98)
- # duct (3)
- # events (1)
- # figwheel-main (10)
- # fulcro (62)
- # leiningen (23)
- # luminus (18)
- # off-topic (19)
- # pedestal (6)
- # re-frame (46)
- # reagent (21)
- # ring (17)
- # ring-swagger (3)
- # shadow-cljs (94)
- # slack-help (9)
- # spacemacs (14)
- # sql (1)
- # testing (4)
- # tools-deps (14)
hi all, what is the idiomatic way of getting all the dependencies a la lein deps
? I’m running docker, and I want to be able to cache the dependencies, so I don’t have to download each time i shadow-cljs release
in my CI pipeline
shadow-cljs info
will do that (assuming you have :dependencies
actually in shadow-cljs.edn
)
@thheller would shadow-cljs info
still work if I used deps.edn for dependencies?
Hmm. I’m already doing that, but somehow shadow-cljs release
still ends up downloading the dependencies all over again.
… oooh, that could be it!
but that will start the entire process which adds a couple secs and isn't strictly necessary
got it 🙂 thanks, @thheller!
Why does, sometimes, my shadow-cljs compiles a code that have the error: ReferenceError: $cljs is not defined
I can't reproduce exactly what happens, but it's common when I'm developing a code in one machine and change to another
since $CLJS
is only used in development builds are you maybe trying to load a development build compiled on one machine on the other? that is never supported and should not be done.
No, it normally occurs when I'm developing on one machine, then I pull the repository from another one and try to compile with shadow-cljs watch <build-id>
.
Most of the time it solves by deleting .shadow-cljs
folder, target, node_modules
, and trying again.
Once I had to upgrade shadow-cljs because nothing else solved it
No, I'm not commiting any build files
nothing should ever require deleting .shadow-cljs
so I'm kinda curious what you are doing
can you tell me more about your setup? I don't understand what $cljs
is? Is that just because you typed the message by hand maybe? shadow--cljs has zero references for $cljs
only $CLJS
?
I'm using shadow-cljs with lein
to develop Chlorine, and now I'm trying some integration tests in the branch full-editor-tools
of my repl-tooling
repo (https://github.com/mauricioszabo/repl-tooling/)
Today I updated my repository on another machine to keep developing the branch and it complained about missing showdown
dependency from NPM (never heard of it).
I've instaled and fired up electron
on my UI, and saw that error on console.log 🙂
Have no idea what happened too...
I'm using shadow-cljs to emit a JS so I can render on electron
showdown, I have no idea why it asked.
(on my home's machine it didn't ask for showdown too)
just did a git reset to clean up some stuff I was testing and ended with HEAD is now at dead100 ...
. was a bit confused for a second 😉
Hm, what to do about shadow-cljs - connection closed!
? In the inspector I get `WebSocket network error: The operation couldn’t be completed. (OSStatus error -9807.)
cljs$core$IFn$_invoke$arity$variadic — browser.cljs:25:97`
It’s just that it doesn’t really complain about SSL, and there’s no “lock with a cross” or similar
I just googled OSStatus error -9807
since I also have no idea what this is about. it certainly is nothing from shadow-cljs
oh did you maybe not configure the ssl in shadow-cljs but some other server isntead?
It seems to work just fine, both with Safari and even Chrome on an Android (although the latter still shows https://
Looking in the inspector, it says “[blocked] The page at https://dolly.local:9630/dashboard was not allowed to run insecure content from <ws://dolly.local:9630/api/ws>. p1 — app.js:1877:84”
seems to do so in Mac Safari … I’ve probably still not installed the cert correctly on the iPhone
There’s a post here from jan 18 that also mentions not being able to use wss on iOS with self-signed certs, even though it works on Mac: https://stackoverflow.com/a/48155102/202538
He suggests not using SSL, but the problem is, I’m playing around with the getUserMedia
api that requires it. I guess I’ll just have to live without hot-reloading on the iOS device. It still works perfectly on both Android and Mac Safari though.
Hey all, been using shadow-cljs for a few months now and finally getting productive. I ran into an issue today that I’m just not able to debug and was hoping someone here may have seen the same thing and has a resolution. I have a situation where “nested” Reagent components won’t cause a re-render in the browser if I save the file the function returning the renderer is defined in. However, if I change the calling file things get picked up just fine. Moving the nested function into the same file as the caller will also result in a success, so it doesn’t appear I’ve got the return value wrong. In both cases the shadow-cljs loader icon will pop up and in the browser as if things worked. Any ideas?
if you keep a function reference to something from another namespace that function reference can't be updated
if you update the code in the other-namespace
x
won't be updated (only if the namespace with x
is also reloaded)
@thheller here’s a clearer explanation I hope. If I updated the contents of login-panel/component
, let’s say change the text of “Sign In” to “Other Sign In”, things won’t reload even though the spinner appears. Apologies if this is exactly what you’re explaining and I just don’t understand quite yet 😉 https://gist.github.com/reset/cc0781ec1cf45dc20f7238a98eaf0030
I don't know much about reagent but it may just short circuit your render somewhere. just stop rendering because it thinks nothing changed
@lilactown I’m not sure, but what I am doing is modifying the function, saving the file, and not seeing the page automatically reload