-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
DynamicallyAccessedMembersAnalyzer throws an internal exception due to source location outside compilation #109352
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
CC @amanasifkhalid. |
@agocke, please see if this is an ILLInk related issue. |
@jtschuster could you take a look? |
I'm unable to reproduce this. Does this occur in VS only, or command line builds too? What version for the .NET SDK and VS are you using? |
@jtschuster This repros for me just now with Visual Studio Version 17.13.0 Preview 1.0 [35429.394.main]. It can be helpful to filter your Error List to just AD0001 warnings to find it: dotnet --info
|
I'm trying to figure out how to install 17.13.0 Preview 1.0, but on 17.13.0 Preview 2.0, the IL2075 warning location is |
@jtschuster The bug still repros on 17.13 Preview 2 (35511.228.main):
|
I'm not able to repro the issue either - @AArnott are you able to repro this on another machine? |
I've already repro'd it on 2 distinct machines. |
Still can't repro on a fresh dev box. However, I do notice that the IL2075 warning shows up in a command-line build, but not in the error list. Maybe the AD0001 is getting swallowed somehow in our setup. @jtschuster do you see the warning in the error list or on the command-line? |
I see the IL2075 in |
FWIW I see the AD0001 error without any build at all. Just open the sln on a clean repo and wait a couple minutes. A flood of entries appear in the Error List, so I then apply the column filter to show only the (1) AD0001 error and it shows up. |
Warnings don't show up for me until I open source files. When I open |
I definitely have this setting in my IDE. |
Thank you, that did it, I can repro now. Now to investigate why.. |
Describe the bug
In enabling the AOT readiness analyzers, the MessagePack codebase produces a lot of warnings. Among them is an AD0001 warning about a failed analyzer. See Exceptions section for details.
To Reproduce
Inspect the error list, filtering to AD0001 entries.
Exceptions (if any)
Further technical details
dotnet --info
The text was updated successfully, but these errors were encountered: