Fork me on GitHub
#shadow-cljs
<
2019-06-19
>
Dmytro Bunin07:06:29

@thheller about the yesterday issue, clj-ajax library has a dependency on some javascript file which has a symbol that is not really defined. So thanks for the pointers 🙂

thheller07:06:46

do you have the code causing the problem? maybe I can prevent that causing an issue in the future?

lucmartens07:06:48

I’ve made a minimal example reproducing above issue: With cljs-ajax build fails sometimes: https://gitlab.com/lucmartens/cljs-pipeline-test/merge_requests/1/diffs Without it seems to succeed: https://gitlab.com/lucmartens/cljs-pipeline-test/merge_requests/2/diffs

thheller07:06:54

thanks. I'll see if I can figure something out

thheller09:06:08

@luc.martens that example repo doesn't have a build config? .. nevermind its the npm module default

thheller10:06:45

IllegalStateException: Could not find where to put constant cljs$cst$keyword$body. Used by [ajax.easy.js, ajax.xhrio.js, ajax.xml_http_request.js, ajax.ring.js, ajax.interceptors.js, ajax.protocols.js], selected common dep goog.structs.map.js
        shadow.build.closure.ReplaceCLJSConstants.process (ReplaceCLJSConstants.java:61)

lucmartens11:06:02

Nice, that’s a lot more clear

thheller10:06:53

improved the error message a bit 😉

rnandan27314:06:54

I have been a user of luminus web framework. Now they have introduced +shadow-cljs as one of the profiles that is used via the lein-shadow plugin. However i am having issues running lein shadow compile app. Any thoughts?

deadghost14:06:37

https://github.com/deadghost/shadow-npe I'm getting NullPointerException. Any ideas?

thheller14:06:16

looks like a bug in the closure compiler

deadghost17:06:49

hmm how should I proceed here?

deadghost17:06:08

compiler bugs aren't an everyday occurrence for me

deadghost17:06:17

and is up there on things I don't want to hear

deadghost17:06:17

thinking: don't use the specific library, deep dive and maybe fix it on the library level, deep dive and submit an issue for the closure compiler

thheller18:06:32

well yeah thats tough. need to find the actual problematic code first which isn't easy since it imports so much