Closed cloojure closed 2 years ago
It's in Parboiled which is almost not maintained unfortunately. Same as Pegdown. This means that codox
can be unusable on JDK 16+ (I have the same issue on 17).
Workaround for Leiningen and deps.edn:
:jvm-opts ["--add-opens" "java.base/java.lang=ALL-UNNAMED"]
I ran into this same problem when one of my users was trying to build Afterglow under Java 17. I am glad there is at least a workaround for now.
This should be fixed in 0.10.8.
Oh, thank you! I forgot that my plugins were not showing up in lein ancient
, and was just stewing over the fact that the workaround broke my CI for building the online version of the developer guide, because the java version on Netlify, which builds and hosts it, is too ancient to support the --add-opens
option. Updating codox is a much better answer. 😄
@brunchboy You can check outdated plugins with lein ancient :plugins
or lein ancient :all
.
Indeed, when I remember to. Thanks again, all is well now that I have updated everything.
When in doubt, write a function! Here is my favorite:
function lanc() { # Lein ANCient
echo ""
echo ""-----------------------------------------------------------------------------
echo "project.clj:"
echo ""
lein ancient check :all
echo ""
echo ""-----------------------------------------------------------------------------
echo "profiles.clj:"
echo ""
lein ancient check-profiles :all
echo ""-----------------------------------------------------------------------------
echo ""
}
with result
~/expr/demo > lanc
-----------------------------------------------------------------------------
project.clj:
[org.clojure/clojure "1.11.1"] is available but we use "1.11.0" (use :check-clojure to upgrade)
[com.jakemccrary/lein-test-refresh "0.25.0"] is available but we use "0.24.1"
-----------------------------------------------------------------------------
profiles.clj:
-- ~/.lein/profiles.clj
all artifacts are up-to-date.
-----------------------------------------------------------------------------```
It works under Java 15. When upgrade to Java 16, get a console error:
Full error report: