Should BOOT_JVM_OPTIONS
work? I have this in my boot.properties and I still get erased stack traces.
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.9.0
BOOT_VERSION=2.8.1
BOOT_JVM_OPTIONS=-XX:-OmitStackTraceInFastThrow
I have -XX:-OmitStackTraceInFastThrow
as well, but you might want to check if it doesn’t get overridden in your project
That's my project's boot.properties
Pretty sure you can't override JVM options in boot.properties
-- after all, the JVM is already running by the time that file is read in to start Boot.
https://github.com/boot-clj/boot/wiki/JVM-Options#per-project-settings
https://github.com/boot-clj/boot/wiki/Configuring-Boot#note-about-boot_jvm_options--boot_java_command this says it’s supposed to work but shrug
Hmm, that's probably true then, @miikka what is boot -v
ran from your home directory? You might need to boot -u
that's not right, I meant to dump out the version
boot --version
oh yeah, I have a script that sets BOOT_JVM_OPTIONS, it’s not in my boot.properties
@miikka boot -u
should make that work
Wouldn't the Boot "core" file need to be updated for that change in 2.8.1 to take effect?
is that not what boot -u
does?
@dominicm I thought that only updated boot.properties
which then caused the JAR files to be updated (but not the runner itself).
Looks like the boot.sh
file hasn't changed so I'm clearly wrong about that 😐
@seancorfield you might be right, I've run boot -u
, and can't get boot to pick up the jvm_options I'm setting.
https://github.com/boot-clj/boot-bin/pull/13 here's the fix
yeah, boot-bin needs a release
OK, good. So I'm not crazy after all 🤯