i’m working on a precompiled script plugin, and in...
# intellij
b
i’m working on a precompiled script plugin, and intellij is doing something very strange.
build.gradle.kts
dependencies { implementation(“org.jfrog.buildinfobuild info extractor gradle4.18.3”) } then in my
my-conventions.gradle.kts
i have:
Copy code
import org.jfrog.gradle.plugin.artifactory.dsl.PublisherConfig
import org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention
import org.jfrog.gradle.plugin.artifactory.ArtifactoryPluginUtil
and ij recognizes the last, but does not recognize the 2 before it.
a
Can you please file an issue at http://kotl.in/issue with a sample project to reproduce?
b
unfortunately not, i realized the artifactory plugin is just really hideous and i ended up doing away with it entirely. intellij consistently though identifies errors on valid
build.gradle.kts
so i’ll try to catch the next one i come across. (though it also seems non-deterministic, one day the project will be fine, then something gets corrupted and it starts complaining even though everything is good on CLI.
the general issue seems to be: “intellij often fails to properly resolve classes from 3rd party gradle plugins that are on the classpath (cli compilation works as expected, with plugins applied)”
almost certainly due to a jar indexing issue
it’s doing it now in another project (which is complex and not shareable unforutnately) the
io.gitlab.arturbosch.detekt.extension
classes seem to be missing from the index, but do exist within the jar file. is there any debug information that i could provide specific to the indexes?
a
Sorry, I'm not sure what information could be useful besides IDE logs. When a YouTrack issue is passed to developers they may be able to say more.