-
Notifications
You must be signed in to change notification settings - Fork 4k
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
GeneratedRegex Attribute Failed to generate code and shows CS8795 error #65850
Comments
This doesn't reproduce in 17.5.0 Preview 2.0; we'd be hearing pretty loudly if we broke this generally. @laolarou726 any idea if there's something special with your setup, or was that screenshot from a larger project where there might be some extra things impacting it? |
I think this bug is randomly happening to me. Sometime I need close Visual Studio and open again then the problem will resolve. |
If you get to the point where you have the squiggle, if you click on the method name and invoke Go to Definition, what happens? The request may seem odd since it seems like it shouldn't work if there's a squiggle at all, but it's possible a few different systems are out of sync here. |
Sometimes it will jump to the right definition. But VS still shows error there. |
This is happening in VS 2022 as well in .NET 7.0 projects. Microsoft Visual Studio Enterprise 2022 |
@onionhammer This issue is also specific to Visual Studio (not VS Code). Can you file a new issue for the behavior you observed? |
Version Used:
Steps to Reproduce:
SourceGenerator does not generate anything.
Diagnostic Id:
CS8795
The text was updated successfully, but these errors were encountered: