-
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
StackOverflowException when compiling project with large (12MB) cs file and targeting net6.0 #64225
Comments
Notable that I'm trying to suppress code analysis for this project to work around the crash but I still see three analyzers on the csc.exe command line. When building w/ net472 target I don't see any analyzers being used. |
Can you supply the file that is causing the crash? |
I can't, unfortunately. It's proprietary code. I'll try to recreate it in a test project. |
@jaredpar this is my code. Should be easy to convert it to non-recursive. I can do that when I get back from vacation. Or, if this is critical, I can walk anyone through it. |
@omellet no worries! The stack and explanation are likely sufficient here. Thanks for reporting this, and sorry for he hassle here! |
Am I wrong to think the analyzer shouldn't be running at all if I see |
This isn't an analyzer. It's a source generator. :-) |
Version Used: 4.3.0-3.22423.10 (b35bb0b)
Steps to Reproduce:
(A sharplab repro is ideal for compiler/language issues whenever possible)
Expected Behavior:
Builds in a couple seconds
Actual Behavior:
Crashes with StackOverflowException:
The text was updated successfully, but these errors were encountered: