intellij-plugin-v4
intellij-plugin-v4 copied to clipboard
Antlr Generator Config Lost between IntelliJ sessions
Via
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?
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.
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.