Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ktr62 opened this issue Jun 15, 2022 · 2 comments

Comments

@ktr62
Copy link

ktr62 commented Jun 15, 2022

  • 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 ktr62 changed the title IntelliJ IDEA 2022.1.2 CE / ANTLR Plugin 4.10.1 - Grammar Config not retrieved in next ImtelliJ session IntelliJ IDEA 2022.1.2 CE / ANTLR Plugin 4.10.1 - Grammar Config not retrieved in next IntelliJ session Jun 15, 2022
@ktr62
Copy link
Author

ktr62 commented Jun 15, 2022

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 ktr62 changed the title IntelliJ IDEA 2022.1.2 CE / ANTLR Plugin 4.10.1 - Grammar Config not retrieved in next IntelliJ session IntelliJ IDEA 2022.1.2 CE / ANTLR IntelliJ Plugin 1.19.2 / ANTLR 4.10.1 - Grammar Config not retrieved in next IntelliJ session Jun 15, 2022
@parrt
Copy link
Member

parrt commented Jun 18, 2022

Wow. So weird. @bjansen any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants