Fork me on GitHub
#boot
<
2018-10-03
>
samedhi02:10:04

Sometimes I get Stack trace of root exception is empty; this is likely due to a JVM optimization that can be disabled with -XX:-OmitStackTraceInFastThrow. when I execute code in the repl in cider. Any idea what I add to my build.boot in order to allow these stacktraces?

Alex Miller (Clojure team)02:10:36

you could start your jvm with -XX:-OmitStackTraceInFastThrow

seancorfield04:10:15

@samedhi You can use an environment variable to tell Boot to pass that to the JVM:

BOOT_JVM_OPTIONS=-XX:-OmitStackTraceInFastThrow
We start all our processes -- both Boot and JARs -- with that option. I've no idea which bright spark at Oracle thought the default should be to "optimize away" your stacktraces... 😞