Skip to content

Tool not generating visitors and listeners in v. 12.13.0 #113

Description

@lynkx

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions