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

Fix for #3588 -- Update root pom.xml for testing Antlr 4.11.1 #3596

Merged
merged 2 commits into from
Jul 11, 2023
Merged

Fix for #3588 -- Update root pom.xml for testing Antlr 4.11.1 #3596

merged 2 commits into from
Jul 11, 2023

Conversation

kaby76
Copy link
Contributor

@kaby76 kaby76 commented Jul 10, 2023

This is a fix for #3588.

The version of the Antlr tool is specified directly in the root pom.xml. But the version of the runtime is specified indirectly with the antlr4test-maven-plugin.version. The plugin links with a version of runtime specified in the plugin here.

Consequently, when Dependabot updates the pom.xml, e.g., #3114 and #3462, it fails to take into consideration updating the version of the plugin, which must be specially released and published. The state for testing using the plugin is then inconsistent.

The newer test framework via trgen does not have this problem because it works from the version in the templates for both tool and runtime. The antlr4 tool is used, which not only downloads the Antlr .jar, but the java runtime. Even when running the compiled java program, it refers back to the one and only version string.

I am removing a .error file that I created for abb. The test plugin cannot deal with empty .errors files, so it has to be removed.

There's a problem with the XPath grammars. That is being fixed separately. #3595

The PR updates the support for testing with the plugin, until a time when people stop using it. Grammars that require the new features of Antlr 4.11.2 or more recent must be removed from the root pom.xml.

@teverett
Copy link
Member

@kaby76 thanks!

@teverett teverett merged commit 2da46b1 into antlr:master Jul 11, 2023
rvrooman-codelogic pushed a commit to CodeLogicIncEngineering/grammars-v4-public-fork that referenced this pull request Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants