After upgrading to 2.2.0 I get this message when I try to run my compiler plugin test cases (all pas...
t

Tóth István Zoltán

4 months ago
After upgrading to 2.2.0 I get this message when I try to run my compiler plugin test cases (all passed up till 2.1.20, now about 25% fails). The test setup that produces this is a bit dirty, I simply commented out fir2IrStep. But when I tried to upgrade to the new setup from the template all the tests failed. I also tried to run the plugin on a project and I've got a similar error, so my guess is that this is not a test setup problem, but I have to change something in the plugin itself. Do I have to set some source file in FIR plugins?
While analysing /basic.kt:11:1: org.jetbrains.kotlin.utils.exceptions.KotlinIllegalArgumentExceptionWithAttachments: Exception in declaration checkers
org.jetbrains.kotlin.util.FileAnalysisException: While analysing /basic.kt:11:1: org.jetbrains.kotlin.utils.exceptions.KotlinIllegalArgumentExceptionWithAttachments: Exception in declaration checkers
	at org.jetbrains.kotlin.util.AnalysisExceptionsKt.wrapIntoFileAnalysisExceptionIfNeeded(AnalysisExceptions.kt:57)
	...
Caused by: org.jetbrains.kotlin.utils.exceptions.KotlinIllegalArgumentExceptionWithAttachments: Exception in declaration checkers
	at     org.jetbrains.kotlin.fir.analysis.checkers.declaration.DeclarationCheckersDiagnosticComponent.visitRegularClass(DeclarationCheckersDiagnosticComponent.kt:289)
	...
Caused by: java.lang.IllegalArgumentException: source must not be null
	at org.jetbrains.kotlin.diagnostics.KtDiagnosticReportHelpersKt.requireNotNull(KtDiagnosticReportHelpers.kt:213)

(full stack trace in thread)
🧵 0