Closed
Description
summary of problem
spotless {
kotlin {
ktlint()
}
}
Having the simple block below highlights ktlint()
. Hovering on it shows the message "Type BaseKotlinExtension.KtlintConfig! is inaccessible in this context due to: public open inner class KtlintConfig defined in com.diffplug.gradle.spotless.BaseKotlinExtension". But spotless works fine. Now if i try to access any method of ktlint config like below red squiggly line appers below that method and hovering over them shows the message "Cannot access 'BaseKotlinExtension': it is package-private in 'com.diffplug.gradle.spotless'"
spotless {
kotlin {
ktlint()
.customRuleSets(listOf("io.nlopez.compose.rules:ktlint:0.3.3"))
}
}
Gradle or Maven version
Gradle 8.4
spotless version
gradle/6.23.0
operating system and version
Windows 11
copy-paste your full Spotless configuration block(s), and a link to a public git repo that reproduces the problem if possible
See above
copy-paste the full content of any console errors emitted by gradlew spotless[Apply/Check] --stacktrace
> Configure project :app
w: file:///D:/[...]/android/app/build.gradle.kts:46:9: Type BaseKotlinExtension.KtlintConfig! is inaccessible in this context due to: public open inner class KtlintConfig defined in com.diffplug.gradle.spotless.BaseKotlinExtension
w: file:///D:/[...]/android/app/build.gradle.kts:46:9: Type BaseKotlinExtension.KtlintConfig! is inaccessible in this context due to: public open inner class KtlintConfig defined in com.diffplug.gradle.spotless.BaseKotlinExtension
e: file:///D:/[...]/android/app/build.gradle.kts:47:14: Cannot access 'BaseKotlinExtension': it is package-private in 'com.diffplug.gradle.spotless'
FAILURE: Build failed with an exception.
* Where:
Build file 'D:\[...]\android\app\build.gradle.kts' line: 47
* What went wrong:
Script compilation error:
Line 47: .customRuleSets(listOf("io.nlopez.compose.rules:ktlint:0.3.3"))
^ Cannot access 'BaseKotlinExtension': it is package-private in 'com.diffplug.gradle.spotless'
If you're just submitting a feature request or question, no need for the above.
Metadata
Metadata
Assignees
Labels
No labels