I'm writing an IDE plugin for my synthetic propert...
# compiler
r
I'm writing an IDE plugin for my synthetic property, and I'm including my compiler plugin as a dependency and reusing the SyntheticResolveExtension class. However when I run the IDE, it complains that my extension doesn't implement SyntheticResolveExtension. I can use reflection to get the class, and while it has a superinterface of SyntheticResolveExtension, it is not equal to the SyntheticResolveExtension it is checking for. I suspect this comes from mine coming from "org.jetbrains.kotlinkotlin compiler embeddable1.4-M1", and the IDEs isn't (I can't seem to get the
runIde
task to use the 1.4-M1 Kotlin plugin, which may be part of the reason why). Is there a way to make this work without duplicating a bunch of code in the ide plugin?
t
r
yeah
not the snapshot though
t
Is Kotlin plugin declared in plugins?
r
It gave me issues so I referenced it as the builtin (
Kotlin
). Let me try that.
Yeah, it fails to resolve the 1.4-M1 plugin, I'm guessing because its in a EAP repo.
Copy code
Could not resolve com.jetbrains.plugins:org.jetbrains.kotlin:1.4-M1-release-IJ2020.1-1.
     Required by:
         project :klairvoyant-ide-plugin
      > Could not resolve com.jetbrains.plugins:org.jetbrains.kotlin:1.4-M1-release-IJ2020.1-1.
         > Could not get resource '<https://oss.jfrog.org/artifactory/oss-snapshot-local/com/jetbrains/plugins/org.jetbrains.kotlin/1.4-M1-release-IJ2020.1-1/org.jetbrains.kotlin-1.4-M1-release-IJ2020.1-1.pom>'.
            > Could not GET '<https://oss.jfrog.org/artifactory/oss-snapshot-local/com/jetbrains/plugins/org.jetbrains.kotlin/1.4-M1-release-IJ2020.1-1/org.jetbrains.kotlin-1.4-M1-release-IJ2020.1-1.pom>'. Received status code 409 from server:
r
That's what I'm trying to use, with
org.jetbrains.kotlin:1.4-M1-release-IJ2020.1-1
, but the maven artifact doesn't resolve, giving the above error.
t
Looks like additional maven repo required
r
Yeah, I just don't know what it is
t
org.jetbrains.kotlin:1.4-M1-release-IJ2020.1-1@eap
?
Channel required
r
It works with
@eap-next
, thanks
I also had to use
shadowJar
like arrow-meta does to move "org.jetbrains.kotlin.com.intellij" to "com.intellij"