Open behrica opened 3 years ago
adding System/exit works:
(ns scicloj.metamorph-examples.try-exit
(:require [notespace.api :as note]))
(System/exit 0)
As a workaround this works.
clj -e '(load-file "src/scicloj/metamorph_examples/titanic.clj")(System/exit 0)'
As we have now the cli namespace in notespace we can now render notespaces to html via a commandline like:
clj -Atest -e "(require 'notespace.cli)(notespace.cli/eval-and-render-a-notespace {:ns 'scicloj.ml.titanic :config-updates {:source-base-path \"userguide\"}})(System/exit 0)"
This is cools specifically if using notespace for documentation of something, so teh html generation can be part of build.
Due to this issue, we need teh (System/exit 0), which is a bit of a pitty.
Thanks, @behrica. I hope we solve such things in the near future.
Executing his code via clojure command line tool clj, throws exception and prevents JVM shutdown
without (shutdown-agents), the JVM does not shutdown, but no exception is seen