This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-24
Channels
- # adventofcode (4)
- # announcements (1)
- # aws (6)
- # babashka (18)
- # babashka-sci-dev (18)
- # beginners (12)
- # calva (43)
- # circleci (3)
- # clj-kondo (96)
- # cljdoc (2)
- # clojure (89)
- # clojure-australia (2)
- # clojure-europe (26)
- # clojure-nl (3)
- # clojure-norway (11)
- # clojure-spec (8)
- # clojure-uk (1)
- # clojurescript (28)
- # cursive (25)
- # datahike (6)
- # datalevin (56)
- # datomic (12)
- # docker (15)
- # emacs (9)
- # events (2)
- # figwheel (3)
- # fulcro (15)
- # gratitude (10)
- # introduce-yourself (8)
- # lsp (16)
- # malli (6)
- # nbb (2)
- # off-topic (23)
- # other-languages (2)
- # pathom (4)
- # portal (25)
- # practicalli (1)
- # re-frame (9)
- # releases (1)
- # shadow-cljs (8)
- # sql (6)
- # timbre (3)
This only happens when using a bb task
:task (clojure "-M:test:runner" "cljs")
instead of calling Clojure itself in cli
clojure -M:test:runner
https://clojurians.slack.com/archives/CCY2V0U6A/p1669087853603829Seemingly not. I was building a repro, and came across the same behavior in the not-bb case in the repro.
Maybe something about bb is just exaggerating susceptibility to an already existing bug?
OK, I've never seen a problem like this in bb before. Perhaps you can also report in the kaocha channel that it probably wasn't bb 😅
Yeah, I want to finish the repro to report to Kaocha. But it got really weird, and I want a break from it.
I had an example_test.clcj
that was triggering the bug. Renamed that to failing_test.cljc
and added a passing_.cljc
file. Added config to run each separately, and the bug went away. So confused, I reverted everything back and the bug was still gone. 🤯
So ... I guess I need to start from scratch? or ... I just don't know.
I was thinking of switching to Olical/cljs-test-runner. But I assume I'll have the same trouble I'm having with cognitect-testrunner. :melting_face: (And it would be nice to at least try getting a useful repro done before I bail on Kaocha.)
Hi! So I'm wrapping an interactive session with a bb script - how do I capture an SIGINT without the clojure.repl namespace? I don't need a shutdown hook, just a way for Control-C not to terminate the script..
$ bb -e '(sun.misc.Signal/handle (sun.misc.Signal. "INT") (proxy [sun.misc.SignalHandler] [] (handle [sig] (prn :sigint)))) @(promise)'
^C:sigint
^C:sigint
^C:sigint
^C:sigint
https://github.com/babashka/babashka: Native, fast starting Clojure interpreter for scripting
1.0.166 (2022-11-24)
See the https://blog.michielborkent.nl/babashka-test-runner.html blog post for how to run tests with this release.
• Compatibility with Cognitest https://github.com/cognitect-labs/test-runner and https://github.com/clojure/tools.namespace
• Add run-test
and run-test-var
to clojure.test
• Compile distributed uberjar using GraalVM, fixes babashka.process/exec
for Nix
• https://github.com/babashka/babashka/issues/1414: preserve metadata on exec task function argument map
• https://github.com/babashka/babashka/issues/1269: add lib tests for sluj (https://github.com/bobisageek)
• Update nix app example in docs
• Add java.lang.Error
and java.net.URLClassLoader
(only for compatibility with the clojure.java.classpath
lib)
• Deps.clj deps.clj: 1.11.1.1200
• Upgrade timbre to 6.0.1
• Performance improvements in SCI
• SCI: preserve stack information on throw
expressions