babashka

Slackbot 2025-09-13T20:02:37.361089Z

This message was deleted.

Daniel Gerson 2025-09-16T15:19:39.147029Z

Thanks! Apologies for my muddling. I've gotten rid of the garbage that prevented the load. I've also namespaced the cli call as suggested, but still having problems. Pushed the changes, if you don't mind please taking another look?

borkdude 2025-09-16T15:20:24.294329Z

have you also upgraded babashka.cli?

Daniel Gerson 2025-09-16T15:29:19.163619Z

Nope sorry missed that about an upgrade..

borkdude 2025-09-16T15:31:35.366409Z

no problem, easy to miss

Daniel Gerson 2025-09-14T14:35:34.745679Z

So hopefully I managed to isolate this https://github.com/dmg46664/problems/tree/main/0013_bb_sym_f

borkdude 2025-09-14T16:52:24.447749Z

I took a brief look, but this doesn't seem babashka (native) related, just babashka.cli on the JVM and your code probably. One thing I ran into is this:

user=> (require 'dimigi.extraction)
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::arrayBaseOffset has been called by org.agrona.BufferUtil (file:/Users/borkdude/.m2/repository/org/agrona/agrona/1.11.0/agrona-1.11.0.jar)
WARNING: Please consider reporting this to the maintainers of class org.agrona.BufferUtil
WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release
[main] WARN xtdb.cache - Could not open ConcurrentHashMap.table field - falling back to LRU caching. Use `--add-opens java.base/java.util.concurrent=ALL-UNNAMED` to use the second-chance cache.
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by com.kenai.jffi.internal.StubLoader in an unnamed module (file:/Users/borkdude/.m2/repository/com/github/jnr/jffi/1.2.23/jffi-1.2.23.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled

[main] INFO xtdb.tx - Started tx-ingester
:before-load
Syntax error compiling at (dimigi/extraction.clj:96:3).
Unable to resolve symbol: hab-1wa#_ in this context
So it seems your code doesn't even load

borkdude 2025-09-14T16:56:34.916239Z

It did discover one oddity with babashka.cli. If you specify an exec fn that starts with - it is interpreted as an option. so that won't work. You can work around that with this:

:extract-select {:extra-deps {org.babashka/cli {:mvn/version "0.8.66"}}
                   :main-opts ["-m" "babashka.cli.exec" "dimigi.extraction/-main"]}
So specify the exec fn as one argument as a namespaced symbol

borkdude 2025-09-14T16:57:03.705119Z

I'll file this -main bug at babashka.cli but at least you're not blocked on this now

borkdude 2025-09-13T20:02:58.631949Z

huh?

Daniel Gerson 2025-09-13T20:04:55.145519Z

Think I was trying to search but posted instead. I had a stroke in Dec, so please forgive me.

borkdude 2025-09-13T20:05:36.425479Z

oooh, hope you're doing good now?

Daniel Gerson 2025-09-13T20:06:21.868449Z

Better than Dec but in a mess, thanks for asking

❤️ 6
🤗 4
🫂 4
borkdude 2025-09-13T20:06:48.828029Z

ok man, hope you'll be better in the coming time

🧡 3