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
{{ message }}
Repository navigation
Test runner failing on release/5.0 because of new VB analyzer dependency #22177
CSC : error AD0001: Analyzer 'Microsoft.EntityFrameworkCore.InternalUsageDiagnosticAnalyzer' threw an exception of type
'System.IO.FileNotFoundException' with message
'Could not load file or assembly 'Microsoft.CodeAnalysis.VisualBasic, Version=3.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
[/home/ajcvickers/efcore/src/EFCore.Proxies/EFCore.Proxies.csproj]
Yeah, unless I'm mistaken, the compiler (probably including analyzers?) is kept running in the background, so if you're switching from an old analyzer version to a new one, something like this may happen. dotnet build-server shutdown may help on the cmdline.
I'll play around with it a bit to try to understand.
changed the title [-]Test runner failing on release/5.0[/-][+]Test runner failing on release/5.0 because of new VB analyzer dependency[/+]on Aug 24, 2020
@roji The thing I don't understand about this is that there should be no commits in the main branch that are not also in the release/5.0 branch, so I should not be building different versions of the analyzer code.
Discussed this with the team in triage. Since we're very late in the 5.0 cycle, the decision is to remove the VB capabilities for now, and keep this as a C#-only analyzer (option 1 above).
We'll keep PR #22195 - which does option 3 - open for now, and merge it later for 6.0.
Thanks again for the input and the PR @sharwell - we'll definitely get this in.
@sharwell thanks for offering! I think I can take care of it. Basically remove the attribute from the analyzer, remove the reference to Microsoft.CodeAnalysis.VisualBasic and all the code that does VB syntax, right?
Activity
ajcvickers commentedon Aug 22, 2020
/cc @roji
AndriySvyryd commentedon Aug 22, 2020
@ajcvickers
git clean -xdfhelped on my repoajcvickers commentedon Aug 22, 2020
I swear I tried that!
ajcvickers commentedon Aug 23, 2020
I'm running into this again and cleaning doesn't always work.
ajcvickers commentedon Aug 23, 2020
This is hitting me a lot when switching branches. It may be related to dotnet processes running in the background.
roji commentedon Aug 24, 2020
Yeah, unless I'm mistaken, the compiler (probably including analyzers?) is kept running in the background, so if you're switching from an old analyzer version to a new one, something like this may happen.
dotnet build-server shutdownmay help on the cmdline.I'll play around with it a bit to try to understand.
[-]Test runner failing on release/5.0[/-][+]Test runner failing on release/5.0 because of new VB analyzer dependency[/+]roji commentedon Aug 24, 2020
Also flagged by @sebastienros for the benchmarks: https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdev.azure.com%2Fdnceng%2Finternal%2F_build%2Fresults%3FbuildId%3D779625%26view%3Dlogs%26j%3D624e7fb7-5c98-5486-5327-c11d2337f7d0%26t%3D2359c25d-30a0-55a2-ec7b-07ef5e18701f&data=02%7C01%7CShay.Rojansky%40microsoft.com%7C4f48560ae7064fc1e14108d845338f6e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637335435052072154&sdata=Op2xdZoIJVREuCThtAlkT%2Bx93PfdpSc027OsMdgkAUw%3D&reserved=0
roji commentedon Aug 24, 2020
Yeah, what I wrote above checks out. To repro on the cmdline:
dotnet build-server shutdownto start from a clean slateassembly 'Microsoft.CodeAnalysis.VisualBasic)
dotnet build-server shutdownagain@sebastienros are benchmark builds still failing because of this? If so, is there any chance we're mixing two versions of EF here?
ajcvickers commentedon Aug 24, 2020
@roji The thing I don't understand about this is that there should be no commits in the main branch that are not also in the release/5.0 branch, so I should not be building different versions of the analyzer code.
sharwell commentedon Aug 24, 2020
I'm very familiar with this particular error. Where can I find the implementation of the analyzer in question?
ajcvickers commentedon Aug 24, 2020
@sharwell https://github.com/dotnet/efcore/tree/release/5.0/src/EFCore.Analyzers
11 remaining items
roji commentedon Aug 24, 2020
Discussed this with the team in triage. Since we're very late in the 5.0 cycle, the decision is to remove the VB capabilities for now, and keep this as a C#-only analyzer (option 1 above).
We'll keep PR #22195 - which does option 3 - open for now, and merge it later for 6.0.
Thanks again for the input and the PR @sharwell - we'll definitely get this in.
sharwell commentedon Aug 24, 2020
@roji Would you like me to submit a parallel pull request with just the changes for option (1) or is it something that you're already familiar with?
roji commentedon Aug 24, 2020
@sharwell thanks for offering! I think I can take care of it. Basically remove the attribute from the analyzer, remove the reference to Microsoft.CodeAnalysis.VisualBasic and all the code that does VB syntax, right?
sharwell commentedon Aug 24, 2020
Yes that should cover it. Feel free to mention me in the code review.
Remove VB support from analyzer
Remove VB support from analyzer (#22211)