This message was deleted.
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?
have you also upgraded babashka.cli?
Nope sorry missed that about an upgrade..
no problem, easy to miss
So hopefully I managed to isolate this https://github.com/dmg46664/problems/tree/main/0013_bb_sym_f
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 loadIt 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 symbolI'll file this -main bug at babashka.cli but at least you're not blocked on this now
huh?
Think I was trying to search but posted instead. I had a stroke in Dec, so please forgive me.
oooh, hope you're doing good now?
Better than Dec but in a mess, thanks for asking
ok man, hope you'll be better in the coming time