Liam
07/07/2023, 8:22 PMcom/intellij/psi/PsiElement
depending on the context. I got my gradle setup far enough to where I can output my plugin as both variants however I want, but I see no way to actually get it to work;
When loading the plugin from gradle, the same compiler plugin has to work in the IDE and the gradle build. But if the gradle plugin refers to the non-embeddable version, it works in the IDE but fails in gradle. If it points to the embeddable version, its the other way around.
It was said here before that this will be fixed in some way - is there already a fix for this? Could be that I'm simply missing something. How are the built in compiler plugins solving this? As far as I've seen they also create two different versions, just like I do. But how do they get the IDE to use the right one?Liam
07/07/2023, 8:30 PMBuild #IU-232.8453.116, built on June 29, 2023
With the following jvm options added:
-Didea.kotlin.plugin.use.k2=true
-Dkotlin.k2.only.bundled.compiler.plugins.enabled=false
This is the exception I'm seeing:dmitriy.novozhilov
07/10/2023, 6:59 AMdmitriy.novozhilov
07/10/2023, 7:00 AMLiam
07/11/2023, 9:25 AMval MISSING_TEMPLATE_HANDLER_ERROR by error1<PsiElement, FirClassSymbol<*>>(SourceElementPositioningStrategies.NAME_IDENTIFIER)
I did this because I saw it in the noarg k2 module, is there an alternative to this? That would also solve the issue of course 😄dmitriy.novozhilov
07/11/2023, 9:27 AMorg.jetbrains.kotlin.psi.KtElement
instead of com.intellij.psi.PsiElement
Liam
07/11/2023, 9:30 AMKtSourceElement
implements PsiElement
Liam
07/11/2023, 9:33 AMdmitriy.novozhilov
07/11/2023, 9:34 AM