After upgrading from 12.10 to 12.13, we noticed a regression in functionality that previously worked as expected.
Expected behavior
In 12.10 (and up to 12.12), tool would generate listeners and visitors by default for any grammar name.
Actual behavior
In 12.13, tool does not generate visitors/listeners.
Running a dotnet build with diagnostic verbosity for both versions results in different command arguments being sent to Antlr4.
Older version includes switches -listener and -visitor but new one sets them as -no-listener and -no-visitor.
I suspect the issue is in line https://github.com/kaby76/Antlr4BuildTasks/blob/master/Antlr4BuildTasks/Tools/JavaAntlrTool.cs#L146
where a tool now expects a grammar name to end with Parser.g4.
After upgrading from 12.10 to 12.13, we noticed a regression in functionality that previously worked as expected.
Expected behavior
In 12.10 (and up to 12.12), tool would generate listeners and visitors by default for any grammar name.
Actual behavior
In 12.13, tool does not generate visitors/listeners.
Running a dotnet build with diagnostic verbosity for both versions results in different command arguments being sent to Antlr4.
Older version includes switches -listener and -visitor but new one sets them as -no-listener and -no-visitor.
I suspect the issue is in line https://github.com/kaby76/Antlr4BuildTasks/blob/master/Antlr4BuildTasks/Tools/JavaAntlrTool.cs#L146
where a tool now expects a grammar name to end with Parser.g4.