intellij-plugin-v4 icon indicating copy to clipboard operation
intellij-plugin-v4 copied to clipboard

IntelliJ IDEA 2022.1.2 CE / ANTLR IntelliJ Plugin 1.19.2 / ANTLR 4.10.1 - Grammar Config not retrieved in next IntelliJ session

Open ktr62 opened this issue 3 years ago • 2 comments

  • I can well define a grammar configuration by 'Configure ANTLR...'
  • This config is well retrieved in the same IntelliJ session
  • However, in the next IntelliJ session this config seems to be lost, the config dialog shows up empty
  • However, the misc.xml contains the 1st session's config data
  • If I now configure the grammar again in the 2nd session, there is the same xml block added at the end of the grammar configurations in misc.cml again
  • 3rd IntelliJ session, all config is gone again.

ktr62 avatar Jun 15 '22 08:06 ktr62

The grammar config stored and duplicated in misc.xml is like:

  <PerGrammarGenerationSettings>
      <option name="fileName" value="$PROJECT_DIR$/src/main/java/com/lynxtechnik/robot/lib/lxrobject/buildable/parser/grammar/LXRDeviceGrammar.g4" />
      <option name="autoGen" value="true" />
      <option name="outputDir" value="$PROJECT_DIR$/../lynx-robot\src\generated\com\lynxtechnik\robot\lib\lxrobject\buildable\parser\antlr" />
      <option name="libDir" value="$PROJECT_DIR$/../lynx-robot\src\main\java\com\lynxtechnik\robot\lib\lxrobject\buildable\parser\subgrammar" />
      <option name="encoding" value="" />
      <option name="pkg" value="com.lynxtechnik.robot.lib.lxrobject.buildable.parser.antlr" />
      <option name="language" value="Java" />
    </PerGrammarGenerationSettings>

ktr62 avatar Jun 15 '22 09:06 ktr62

Wow. So weird. @bjansen any ideas?

parrt avatar Jun 18 '22 22:06 parrt