shadow-cljs

https://github.com/thheller/shadow-cljs | https://github.com/sponsors/thheller | https://www.patreon.com/thheller
bringe 2021-02-13T01:07:14.199300Z

Does anyone here happen to know how to make the typescript compiler not complain about imports like import { some_thing } from 'goog:some.ns' ? I've done some searching but haven't found a solution.

william 2021-02-13T14:56:53.200300Z

can :dev {:compiler-options {:invalid-arithmetic false}} in shadow-cljs.edn silence a warning coming from a dependency?

thheller 2021-02-13T16:16:59.200600Z

no, but yes 😉

😂 1
thheller 2021-02-13T16:17:12.200900Z

:dev {:compiler-options {:warnings {:invalid-arithmetic false}}} can

william 2021-02-13T17:11:27.201300Z

thanks, you're the best 🙌

mauricio.szabo 2021-02-13T20:40:12.203900Z

@thheller Hi there. It seems that recent versions of Shadow-CLJS do not work with OpenJ9 JVM. Do you know if it's a ClojureScript issue, or a Shadow-CLJS one? It does compile, but when I try to run the JS output it gives an error of ReferenceError: ...... is not defined. This ...... can be almost anything, but most of the time is key, $coll, $seq or something like this. I'm not really asking to solve it, but maybe you can have some insight on where the problem is :thinking_face:

thheller 2021-02-13T20:42:03.204300Z

sounds like https://github.com/thheller/shadow-cljs/issues/804. not a clue what is happening or even how.

thheller 2021-02-13T20:43:05.205500Z

there is no code in shadow-cljs or CLJS I'm aware of that prepends a $ to a symbol

thheller 2021-02-13T20:43:10.205700Z

append yes, prepend no

mauricio.szabo 2021-02-13T20:44:39.207200Z

Well, I remember a bug I had on a Clojure code with OpenJ9 that it resolved java methods to different implementations (for example, where both have the signature (int, int) or (long, long), or something). Maybe that's related? I remember that the method was resolved using reflection...

mauricio.szabo 2021-02-13T20:45:03.207900Z

Seems like an interesting thing to investigate 😄

thheller 2021-02-13T20:45:31.208400Z

yeah not a clue where to even start

mauricio.szabo 2021-02-13T20:46:45.208700Z

Yeah, it was related to reflection: https://clojure.atlassian.net/browse/CLJ-2400

thheller 2021-02-13T21:08:06.209100Z

if you have a reliable way to reproduce the problem I'd be happy to check it out

thheller 2021-02-13T21:08:33.209700Z

but the "random" nature makes this difficult

dpsutton 2021-02-13T21:13:45.210500Z

i think alex might have made a ticket about this. method resolution is basically random and there might be problems with Clojure before any cljs gets involved on j9

william 2021-02-13T22:17:51.211500Z

general question: how do you run automatically your tests from cider+shadow-cljs? I see by googling that in the past we didn't have an automated process, but I wonder if that changed

william 2021-02-13T22:19:04.212100Z

I added:

:test {:target    :node-test
                       :output-to "out/node-tests.js"
                       :autorun   true}
to the configuration but nothing ever happens, and I don't know how to activate them