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

Microsoft.CodeQuality.VisualBasic.Analyzers crash #6846

Closed
vsfeedback opened this issue Aug 9, 2023 · 2 comments
Closed

Microsoft.CodeQuality.VisualBasic.Analyzers crash #6846

vsfeedback opened this issue Aug 9, 2023 · 2 comments
Labels
Bug The product is not behaving according to its current intended design Reliability Indicates a reliability issue (crash/data loss/test flakiness) Resolution-Duplicate Resolution-Fixed

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work] [regression] [worked-in:Version 17.8.0 Preview 6.0]

Severity	Code	Description	Project	File	Line	Suppression State
Warning	AD0001	Analyzer 'Microsoft.CodeQuality.VisualBasic.Analyzers.ApiDesignGuidelines.BasicOverrideEqualsOnOverloadingOperatorEqualsAnalyzer' threw an exception of type 'System.NullReferenceException' with message 'Object reference not set to an instance of an object.'.
Exception occurred with following context:
Compilation: CareLink
ISymbol: TimeZoneExtensions (NamedType)

System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.CodeQuality.VisualBasic.Analyzers.ApiDesignGuidelines.BasicOverrideEqualsOnOverloadingOperatorEqualsAnalyzer.HasEqualityOperator(INamedTypeSymbol type)
   at Microsoft.CodeQuality.VisualBasic.Analyzers.ApiDesignGuidelines.BasicOverrideEqualsOnOverloadingOperatorEqualsAnalyzer._Closure$__._Lambda$__7-0(SymbolAnalysisContext symbolContext)
   at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock[TArg](DiagnosticAnalyzer analyzer, Action`1 analyze, TArg argument, Nullable`1 info, CancellationToken cancellationToken)
-----

Suppress the following diagnostics to disable this analyzer: CA2224	CareLink	C:\Users\PaulM\Source\Repos\CareLink\src\CareLink\CareLink.vbproj	1	Active

Original Comments

Feedback Bot on 8/9/2023, 04:01 AM:

(private comment, text removed)


Original Solutions

(no solutions)

@Youssef1313
Copy link
Member

This was fixed in #6782

@Youssef1313 Youssef1313 added Resolution-Fixed Bug The product is not behaving according to its current intended design Area-Microsoft.CodeQuality.Analyzers Reliability Indicates a reliability issue (crash/data loss/test flakiness) labels Aug 13, 2023
@Youssef1313
Copy link
Member

Duplicate of #6778

@Youssef1313 Youssef1313 marked this as a duplicate of #6778 Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug The product is not behaving according to its current intended design Reliability Indicates a reliability issue (crash/data loss/test flakiness) Resolution-Duplicate Resolution-Fixed
Projects
None yet
Development

No branches or pull requests

2 participants