antlr / intellij-plugin-v4

An IntelliJ plugin for ANTLR v4
https://plugins.jetbrains.com/plugin/7358-antlr-v4
BSD 3-Clause "New" or "Revised" License
468 stars 104 forks source link

Add option to pin to a specific ANTLR version #512

Closed edoardopirovano closed 2 years ago

edoardopirovano commented 2 years ago

The project I'm working on is pinned to a specific version of the ANTLR run-time which is older than the one this plugin uses for code generation. So, I get the following warning when running things using this plugin:

ANTLR Tool version 4.9.2 used for code generation does not match the current runtime version 4.7.2

It would be nice if the plugin supported pinning to a specific version of ANTLR for code generation - for example, by having a configuration option that lets you specify a path to the JAR to use.

parrt commented 2 years ago

Unfortunately, I think we can only hook the plug-in to a specific version of antlr.

parrt commented 2 years ago

I guess I will close this as I can't think of a way to handle this. Sorry! Probably its best done with your build tools anyway for your application.