babashka

jyn 2026-05-10T05:12:38.786669Z

does cream support -M:alias the way that clj does? I'm getting "-M:nrepl (No such file or directory)`.

borkdude 2026-05-10T07:33:02.061989Z

No it only supports a classpath flag at the moment

borkdude 2026-05-10T07:33:40.527319Z

So you build your classpath with the clojure CLI for now

jyn 2026-05-10T07:40:16.039799Z

that's what i'm saying: i'm trying to build the classpath with the clojure CLI, but the CLI passes flags that cream doesn't support

borkdude 2026-05-10T07:41:27.949719Z

The CLI returns a classpath, not flags?

jyn 2026-05-10T07:42:24.063209Z

oh i see, you're saying i should do clojure -Spath -M:nrepl

jyn 2026-05-10T07:42:27.588829Z

yeah i expect that to work 🙂

borkdude 2026-05-10T07:42:35.826109Z

Right

jyn 2026-05-10T07:43:03.245229Z

let me see if i can add that to Conjure's defaults

borkdude 2026-05-10T07:43:28.263539Z

Thanks for testing cream!

❤️ 1
jyn 2026-05-10T05:18:43.265489Z

i wonder if what i want is to keep invoking clj, but somehow tell it to invoke cream instead of the clojure executable

jyn 2026-05-10T05:22:02.890979Z

oh that almost worked

; JAVA_CMD=cream clojure -M:nrepl                                                    +2.4s
Error: Could not find option 'OmitStackTraceInFastThrow'. Use -XX:PrintFlags= to list all available options.

jyn 2026-05-10T05:22:31.660539Z

hm -XX:PrintFlags is also broken

jyn 2026-05-10T05:22:42.843919Z

i wonder if cream should just ignore X flags it doesn't understand?

jyn 2026-05-10T05:25:26.059689Z

(alternatively i guess it could add support for everything the clojure shell wrapper tries to pass)

jyn 2026-05-10T05:27:30.464679Z

it tries to use that -XX:-OmitStackTraceInFastThrow (probably not too important?), -classpath which i believe is already handled, -Dclojure.basis=.cpcache/2441682307.basis (i would expect this to be fairly simple to support?) and clojure.main as the entrypoint (i would expect this to also be simple to support, as long as it's specifically clojure.main. maybe it makes sense to error if it's anything else.)