shadow-cljs

https://github.com/thheller/shadow-cljs | https://github.com/sponsors/thheller | https://www.patreon.com/thheller
devn 2020-10-06T00:19:01.300400Z

Ugh. I am very embarrassed.

devn 2020-10-06T00:19:27.300600Z

I accidentally IBM’s J9 OpenJDK, not the HotSpot version of AdoptOpenJDK

jhacks 2020-10-06T14:50:17.301100Z

Is there a config setting in shadow-cljs for preventing hot reloading of code when there is a compilation error? I was watching this figwheel presentation https://youtu.be/j-kj2qwJa_E?t=1164 (linked to time in video) where Bruce Hauman shows figwheel not loading the code after a compilation error. I didn’t see anything in the shadow-cljs guide that directly mentions this (although I could have missed it), but at the end of this article: https://code.thheller.com/blog/shadow-cljs/2019/08/25/hot-reload-in-clojurescript.html Thomas writes: > Note that an exception during the load of a namespace process may break hot-reload entirely. Avoid running code as much as possible and instead use the `^:dev/after-load` hooks when needed. Maybe that’s the intended way to deal with compilation errors in shadow-cljs?

victorb 2020-10-06T15:08:31.301300Z

There is an *:ignore-warnings`*` option in shadow-cljs that defaults to false. shadow-cljs should already avoid compiling when there is warnings, but you can set :ignore-warnings to true to compile anyways (which might lead to breakage). I know you mentioned compilation errors, but I do think Bruce talks about compilation warnings, not errors

jhacks 2020-10-06T15:18:39.301600Z

Ahh, thanks @victorbjelkholm429! Also, you’re absolutely right, in the video Bruce talks about warnings, not errors. Sorry for the mixup.

1❤️
souenzzo 2020-10-06T18:41:00.302800Z

There is some shadow-cljs tools that acts like warn-on-reflection ? I mean, to be "super safe" about to access .-props

thheller 2020-10-06T19:15:40.303Z

https://shadow-cljs.github.io/docs/UsersGuide.html#infer-externs should be all you need

thheller 2020-10-06T19:16:09.303400Z

no such thing as "reflection" in JS