Intellij Custom Language runtime error: Caused by: java.lang.NoClassDefFoundError:


I'm developing a custom language plugin for intellij idea (using the ANTLR adaptor ) it compiles properly but it throws this error when loading:

2020-11-19 11:35:15,675 [ 3952] ERROR - i.util.KeyedExtensionCollector - Could not initialize class net.hexah.sourcepawn.SourcePawnParserDefinition [Plugin: net.hexah.sourcepawn]

And in the sandbox when the caret changes this is thrown:

ERROR - aemon.impl.PassExecutorService - Argument for @NotNull parameter 'future' of com/intellij/openapi/progress/util/ProgressIndicatorUtils.awaitWithCheckCanceled must not be null 


I've shared here the relevant files:

I've tried setting up breakpoints all round the code in the parser class, but none of them got hit.

Note: The Grammar is a modified version of the ANTLR C grammar and the highlighting is still working but the IDE keeps hanging on Analyzing


1 comment
Comment actions Permalink

I discovered that for some reason having a a static initializer and some static fields caused this error for some reason


Please sign in to leave a comment.