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

Antlr Generator Config Lost between IntelliJ sessions

Open ktr62 opened this issue 4 years ago • 2 comments

Via .g4 context menu in project tree, I configure the Antlr generator. Within the same Intellj session, I can reopen the configurator, having all values still at hand.

However: After IntlliJ restart, the settings are gone. The config data however is properly written to .idea\misc.xml:

`

<option name="perGrammarGenerationSettings">
  <list>
    <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="D:\Projects\ktr\Views\lynx-robot\Current\lynx-robot\src\generated" />
      <option name="libDir" value="D:\Projects\ktr\Views\lynx-robot\Current\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>
  </list>
</option>
`

I use

  • IntelliJ Community 2020.1.2 date of 2020/07/01 with Java 11.0.7+10-b765.53 amd64
  • Antlr Plugin 1.14

Is this an issue? In the antlr comments, the plugin is targeted ti IntelliJ 2019.x, Is there an update available?

ktr62 avatar Jun 25 '20 07:06 ktr62

Checked same function on another PC. Working well there. Both workstations are Win 10 Pro, latest updates applied. The file system entries in misc.xml are all prefixed with $PROJECT_DIR$/src (filename) or $PROJECT_DIR$/../lynx-robot\ (remaining) The filename entry is forward slashed, the remaining are backward slashed with the prefix being backward slashed) Sources have been transferred between workstations via git.

ktr62 avatar Jun 26 '20 06:06 ktr62

Hi, it looks like it's a bug indeed. Although it's strange that the same project on a similar machine is not affected. I'll try to reproduce the problem and let you know.

bjansen avatar Sep 04 '20 09:09 bjansen