JetBrains / Grammar-Kit

Grammar files support & parser/PSI generation for IntelliJ IDEA
Other
704 stars 126 forks source link

Grammark Kit generates duplicate @NotNull tags for one method #354

Open stefansjs opened 7 months ago

stefansjs commented 7 months ago

I'm using grammar kit to develop this flatbuffers language plugin. Lately, when I "Generate Parser Code" from my bnf, it will generate some incorrectly tagged methods. For example:

  @NotNull
  @NotNull FlatbuffersIdent getNameIdentifier();

I don't see any pattern with why it does this. Let me know if you need more details.

Grammarkit version: 2022.3.2 'org.jetbrains.intellij' version '1.16.0' 'org.jetbrains.kotlin.jvm' version '1.6.21' intellij platform version = '2022.2'