-
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
Illegal reflective access operation with Kotlin 1.5.0 #1143
Comments
I have the same issue on 1.4.32 with an M1 Mac and ktlint 0.41.0 (it reports 1.4.31 even though I am using 1.4.32).
Edit: No error on ktlint 0.40.0 |
@itsandreramon yea because they are using I guess we need a new version of |
Looks like the fix has been merged #1175 but no new version has been published yet |
I frequently use Java 16 on the command line and have to explicitly switch to Java 8 so |
As far as I can tell this seems to be fixed as of ktlint 0.42.1 |
You are right, seems that the have fixed it
Closing |
I still observe the error...
|
and in version 0.45.1 too |
Expected Behavior
ktlint
should run without illegal reflective access warnings.Observed Behavior
When running
ktlint
while using Kotlin1.5.0
it outputs the following warning:Other than the warning,
ktlint
works and detects issues in the codeSteps to Reproduce
./gradlew clean
./gradlew ktlint
and observe warningYour Environment
0.41.0
Default implementation from the
README
7.0
(Android Gradle Plugin4.2.0
)Seems to be related to this https://youtrack.jetbrains.com/issue/KT-43704 that states:
Could be similar solution as suggested in #1142 but since output is different and in my case it's just a warning (
ktlint
still works) decided to create new issueThe text was updated successfully, but these errors were encountered: