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

Visual Studio 2022 Preview 3.1 crashes when using Antlr generated C# code #370

Open
dynamoRando opened this issue Sep 13, 2021 · 1 comment

Comments

@dynamoRando
Copy link

(Note: This is a copy+paste from here, as I discovered this repository after I posted the initial issue report).

Hello world,

Before I describe the issue, I want to be clear that I think this is a problem that Microsoft should be looking at, but per their request, I'm posting the issue here as well.

I also want to post that I do have a workaround, described at the above link as well.

I have a repository that also illustrates the issue here.

Basically, when using the TSQL grammar from here, if generated using Antlr 4.6.6, when using TSQLParser.cs, Visual Studio 2022 Preview 3.1 will crash if the project is targeting .NET 6.

When I generated the same file using Antlr 4.9.2, the project does not crash.

It's also odd to me that the problem does not manifest itself if I target .NET 5 instead of .NET 6, which is why I thought Microsoft should look at it, but well... you can see the response above.

Thanks,
R.

@dynamoRando dynamoRando changed the title Visual Studio 2022 Previwe 3.1 Crashes when using Antlr generated C# code Visual Studio 2022 Preview 3.1 crashes when using Antlr generated C# code Sep 13, 2021
@lextm
Copy link

lextm commented Sep 9, 2023

To use ANTLR 4.7 and above, you might read #381

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

No branches or pull requests

2 participants