This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-24
Channels
- # announcements (22)
- # babashka (33)
- # babashka-sci-dev (161)
- # beginners (25)
- # calva (57)
- # cider (6)
- # clara (6)
- # clerk (14)
- # clj-kondo (24)
- # clojars (10)
- # clojure (65)
- # clojure-austin (1)
- # clojure-conj (2)
- # clojure-europe (23)
- # clojure-miami (3)
- # clojure-nl (3)
- # clojure-norway (3)
- # clojure-uk (3)
- # clojurescript (28)
- # cursive (24)
- # datomic (136)
- # emacs (38)
- # graalvm (29)
- # graphql (3)
- # introduce-yourself (8)
- # jackdaw (4)
- # jobs-discuss (9)
- # malli (5)
- # nbb (36)
- # off-topic (11)
- # pathom (58)
- # polylith (2)
- # practicalli (1)
- # re-frame (5)
- # reagent (11)
- # releases (1)
- # remote-jobs (8)
- # sci (15)
- # shadow-cljs (31)
- # slack-help (2)
- # spacemacs (11)
- # sql (7)
- # tools-build (9)
Hey hello, I'm trying to use a wasm compiled lib called https://github.com/jedisct1/libsodium.js and when compiling with shadow-cljs I'm getting this error in the thread. Here is the sample repo for reproduction: https://github.com/rafaeldelboni/libsodium-playground/ Does anybody has experience integrating with this lib?
You can see the full error log here: https://github.com/rafaeldelboni/libsodium-playground/actions/runs/3997095063/jobs/6857970174
Interesting bits:
ExceptionInfo: failed to convert sources
...
Caused by:
RuntimeException: INTERNAL COMPILER ERROR.
Please report this problem.
...
Caused by:
StackOverflowError:
com.google.javascript.jscomp.DeadAssignmentsElimination.tryRemoveAssignment (DeadAssignmentsElimination.java:219)
try upgrading shadow-cljs, which also gives you a more current closure-compiler version
I'm using "shadow-cljs": "2.20.20"
You can see in this run https://github.com/rafaeldelboni/libsodium-playground/actions/runs/3997255290/jobs/6858343826
Yeah sorry I though updating shadow in a commit after I posted here.
woah that did the trick in my machine
gonna commit to check in CI
Yeap is working now, thanks I would never thing about the stack size.
was just a guess after running the libsodium.js file through the closure-compiler directly and that working 😛
Hello channel, I have a :node-test
build which I run with shadow-cljs release
. Sometimes I get an exit code 1 if an error occurs within the test source. However, when an async test times out or does not pass an assertion, the process exits gracefully. I would like to have a failure in these instances in order to stop my deployment process in CI. Any advice on how to achieve this?
do you properly handle async
tests? easy to mess up async tests, so hard to give specific advice
@U05224H0W I’m using react testing library which sometimes fails to find a dom node and thus times out. Not sure how to properly handle this situation with clojure test library :man-shrugging:
not sure what you mean. do you call the async
done
callback when this timeout occurs?
Well I wouldn’t want to do that. I want the process to exit with a failure in that scenario
I’ll need to look into this a little closer and come back with more testing
Hi! I have a build :app
with :target :browser
. It has an alternate module directory called lib
in addition to node_modules
, configured like
:js-package-dirs ["node_modules"
"lib"]
Now I added a new build with :target :npm-module
. I added the same js-package-dirs
config there. This build will not compile because it cannot find the modules inside lib
. Is this supposed to work with npm-module
target?what does "will not compile" mean? npm-module normally doesn't bundle JS dependencies so it shouldn't even matter
Huh, sorry I think I may be barking up the wrong tree here. This is part of a Storybook setup, and the error message I’m seeing could be from some of the JS build parts. They obviously don’t know about my lib
folder. I picked up some advice you gave elsewhere about just npm install
the modules I need from my lib
folder, that actually worked.
how do I set up SSL with dev-http? I'm trying a map like
:dev-http
{8080 {:host ""
:ssl-port 8081}}
but it's not working. I'm using shadow-cljs' default SSL config, and the shadow-cljs server listening on port 9630 is using HTTPS. So I know it's not an SSL error