boot

:boot-clj: https://boot-clj.github.io/ — build tooling for Clojure. Dev chat in #boot-dev
samedhi 2018-10-03T02:34:04.000100Z

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?

alexmiller 2018-10-03T02:47:36.000100Z

you could start your jvm with -XX:-OmitStackTraceInFastThrow

seancorfield 2018-10-03T04:52:15.000100Z

@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... 😞