Skip to content
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

Fix VB.NET BC42376: An instance of analyzer SymbolicExecutionRunner cannot be created #5436

Closed
dougwaldron opened this issue Feb 25, 2022 · 5 comments · Fixed by #5441
Closed
Assignees
Labels
Area: SQ Plugin Java plugin related issues. Area: VB.NET VB.NET rules related issues. Type: Bug Exceptions and blocking issues during analysis.
Milestone

Comments

@dougwaldron
Copy link

After updating the "SonarAnalyzer.VisualBasic" package from version 8.35.0.42613 to version 8.36.0.43782, the compiler produces this warning:

vbc : warning BC42376: An instance of analyzer SonarAnalyzer.Rules.VisualBasic.SymbolicExecutionRunner cannot be created from {my project}\packages\SonarAnalyzer.VisualBasic.8.36.0.43782\analyzers\SonarAnalyzer.VisualBasic.dll : Could not load file or assembly 'SonarAnalyzer.CFG, Version=8.36.0.0, Culture=neutral, PublicKeyToken=c5b62af9de6d7244' or one of its dependencies. The system cannot find the file specified..

Downgrading back to 8.35 eliminates the warning.

This is in a .NET Framework 4.8 project in Visual Studio 2022 (17.1.0).

@pavel-mikula-sonarsource
Copy link
Contributor

Hi @dougwaldron,

Thank you for reporting this. It seems that we forgot to ship this dependency to the NuGet package.

@pavel-mikula-sonarsource pavel-mikula-sonarsource added Area: VB.NET VB.NET rules related issues. Type: Bug Exceptions and blocking issues during analysis. labels Feb 25, 2022
@pavel-mikula-sonarsource
Copy link
Contributor

pavel-mikula-sonarsource commented Feb 25, 2022

It's also missing from the VBNET SQ Plugin

@pavel-mikula-sonarsource
Copy link
Contributor

Related for Peach: #5437

@pavel-mikula-sonarsource
Copy link
Contributor

It doesn't reproduce on SQ/SC, because VB.NET analyzer gets DLL from C# due to current S4NET behavior.

@pavel-mikula-sonarsource pavel-mikula-sonarsource modified the milestones: 8.37, 8.36.1 Feb 28, 2022
@pavel-mikula-sonarsource pavel-mikula-sonarsource changed the title Latest VB package causes BC42376 warning Fix VB.NET BC42376 warning: An instance of analyzer SymbolicExecutionRunner cannot be created Feb 28, 2022
@pavel-mikula-sonarsource pavel-mikula-sonarsource changed the title Fix VB.NET BC42376 warning: An instance of analyzer SymbolicExecutionRunner cannot be created Fix VB.NET BC42376: An instance of analyzer SymbolicExecutionRunner cannot be created Feb 28, 2022
@pavel-mikula-sonarsource
Copy link
Contributor

Hi @dougwaldron, you should be able to use the latest 8.36.1 version that fixes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: SQ Plugin Java plugin related issues. Area: VB.NET VB.NET rules related issues. Type: Bug Exceptions and blocking issues during analysis.
Projects
None yet
3 participants