You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version Used:
Compiler version: '4.12.0-3.24523.10 (16f58fa)'. Language version: 12.0.
I have written a source generator that tries to catch unhandled exceptions when generating code and output it through diagnostics. This works pretty good, disregarding the shortcomings of the Visual Studio Error List and description and messageFormat.
But when compiling again with no changes, the location of the stackframes in the stacktrace of the exception is gone.
If the registered source output changes then the location is reported again on next compilation.
Version Used:
Compiler version: '4.12.0-3.24523.10 (16f58fa)'. Language version: 12.0.
I have written a source generator that tries to catch unhandled exceptions when generating code and output it through diagnostics. This works pretty good, disregarding the shortcomings of the Visual Studio Error List and description and messageFormat.
But when compiling again with no changes, the location of the stackframes in the stacktrace of the exception is gone.
If the registered source output changes then the location is reported again on next compilation.
Steps to Reproduce:
I've tested both in Visual Studio (Version 17.12.0) and the dotnet cli (8.0.404) with the same behavior.
Diagnostic Id: N/A
Expected Behavior:
Stack frame location is the same when no code changes.
Actual Behavior:
Stack frame location is missing when running the source generator multiple times with no changes.
The text was updated successfully, but these errors were encountered: