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.
can :dev {:compiler-options {:invalid-arithmetic false}}
in shadow-cljs.edn
silence a warning coming from a dependency?
no, but yes 😉
:dev {:compiler-options {:warnings {:invalid-arithmetic false}}}
can
thanks, you're the best 🙌
@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:
sounds like https://github.com/thheller/shadow-cljs/issues/804. not a clue what is happening or even how.
there is no code in shadow-cljs or CLJS I'm aware of that prepends a $
to a symbol
append yes, prepend no
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...
Seems like an interesting thing to investigate 😄
yeah not a clue where to even start
Yeah, it was related to reflection: https://clojure.atlassian.net/browse/CLJ-2400
if you have a reliable way to reproduce the problem I'd be happy to check it out
but the "random" nature makes this difficult
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
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
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