-
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
EnC workspace does not report on generators diagnostics #70863
Comments
cc @davidwengier / @tmat |
After investigating a bit further, when a solution change is considered by:
but the compilation fails in generated code, the failing compilation does not get documents or additional documents added to the list returned by roslyn/src/Features/Core/Portable/EditAndContinue/EditSession.cs Lines 898 to 901 in 9367797
This still has allowed me to find that the delta generation may fail if there are duplicate files in the AdditionalDocuments list (a case not directly related to the repro at the top, but still fails without reporting why). |
Are generator diagnostics something we support? I'm not sure how that is supposed to flow into pull diagnostics. Do we need some other IDiagnosticSource for that? |
@CyrusNajmabadi Turns out we do have |
VS reports the diagnostic correctly and right away in |
Version Used: 4.8.0-3.final
Steps to Reproduce:
dotnet new blazorwasm -o testblazor01
cd testblazor01
testblazor01.csproj
add the following:dotnet watch
Program.cs
, add the following at the end:Diagnostic Id: None
Expected Behavior: Hot Reload fails with
error SYSLIB1072: The type 'System.IDisposable' is not supported by source-generated JavaScript interop
Actual Behavior: No errors are reported.
The text was updated successfully, but these errors were encountered: