-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ktlint-core incompatible with latest JDK LTS (JDK 17) #1943
Comments
I saw that a similar ticket was open and closed: #1391 |
leinardi
added a commit
to gtk-kn/gtk-kn
that referenced
this issue
Apr 14, 2023
Duplicate. See #1618 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
If you follow the instruction on how to directly format some code using the artifact
ktlint-code
, you are forced to use JDK 11 because on JDK 17, the latest LTS, you get ajava.lang.ExceptionInInitializerError
.Observed Behavior
When executing
ktLintRuleEngine.format()
the following exception is thrown when using JDK 17 (works fine with JDK 11):Steps to Reproduce
apt-get --quiet install --yes openjdk-17-jdk gcc-multilib libgirepository1.0-dev libadwaita-1-dev
git clone https://gitlab.com/gtk-kn/gtk-kn.git
feature/67-jdk17
:git checkout feature/67-jdk17
:gir:run
:./gradlew :gir:run
Your Environment
0.48.2
.editorconfig
settings: https://gitlab.com/gtk-kn/gtk-kn/-/blob/feature/67-jdk17/.editorconfigcom.pinterest.ktlint:ktlint-core:0.48.2
7.6
Ubuntu 22.04
The text was updated successfully, but these errors were encountered: