Class file version error with generated Parser class for custom language support Follow
Hi,
I was following the tutorial to create a plugin to support custom language but I encounter a problem at step 3/4 (https://plugins.jetbrains.com/docs/intellij/grammar-and-parser.html#generate-a-parser ) :
SimpleParser.java:7: error: cannot access GeneratedParserUtilBase
import static com.intellij.lang.parser.GeneratedParserUtilBase.*;
bad class file: .gradle\caches\modules-2\files-2.1\com.jetbrains.intellij.idea\ideaIC\2020.3.2\13938c2ba003ffe980f450345eea516cd9c2375f\ideaIC-2020.3.2\lib\platform-impl.jar(com/intellij/lang/parser/GeneratedParserUtilBase.class)
class file has wrong version 55.0, should be 52.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
This happens when I try the run the IDE to test the plugin just at end of step 4, and since it concerns a generate class file I don't know what to do.
Anyone knows how to solve this error ?
Please sign in to leave a comment.
Please use Java 8 SDK
I'm using JDK version 1.8.0_281
Sorry, my bad, mixed it up: please use Java 11, see https://plugins.jetbrains.com/docs/intellij/api-changes-list-2020.html#20203
It builds, thanks.