C
C#5h ago
hutonahill

Style cop crashing?

Getting this massive error. Seems like style cop crashed? But its only on one file. All three of these are on the first line of the file which is a comment.
No description
1 Reply
hutonahill
hutonahillOP5h ago
Figured out how to copy the text
AD0001: Analyzer 'StyleCop.Analyzers.LayoutRules.SA1500BracesForMultiLineStatementsMustNotShareLine' 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: MistbornDeckbuilding SyntaxTree: C:\Users\evanriker\Desktop\.NET Development\MistbornDeckbuilding\Turn.cs SyntaxNode: private class OutOfOrder(string ... [ClassDeclarationSyntax]@[20710..20772) (477,4)-(477,66) System.NullReferenceException: Object reference not set to an instance of an object. at StyleCop.Analyzers.Helpers.LocationHelpers.GetLineSpan(SyntaxToken token) at StyleCop.Analyzers.LayoutRules.SA1500BracesForMultiLineStatementsMustNotShareLine.CheckBraces(SyntaxNodeAnalysisContext context, SyntaxToken openBraceToken, SyntaxToken closeBraceToken) at StyleCop.Analyzers.LayoutRules.SA1500BracesForMultiLineStatementsMustNotShareLine.HandleBaseTypeDeclaration(SyntaxNodeAnalysisContext context) at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock[TArg](DiagnosticAnalyzer analyzer, Action`1 analyze, TArg argument, Nullable`1 info, CancellationToken cancellationToken) in Z:\BuildAgent\work\3b7ce003563d6f8f\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerExecutor.cs:line 1182 ----- Suppress the following diagnostics to disable this analyzer: SA1500
AD0001: Analyzer 'StyleCop.Analyzers.LayoutRules.SA1508ClosingBracesMustNotBePrecededByBlankLine' 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: MistbornDeckbuilding SyntaxTree: C:\Users\evanriker\Desktop\.NET Development\MistbornDeckbuilding\Turn.cs SyntaxNode: private class OutOfOrder(string ... [ClassDeclarationSyntax]@[20710..20772) (477,4)-(477,66) System.NullReferenceException: Object reference not set to an instance of an object. at
AD0001: Analyzer 'StyleCop.Analyzers.LayoutRules.SA1500BracesForMultiLineStatementsMustNotShareLine' 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: MistbornDeckbuilding SyntaxTree: C:\Users\evanriker\Desktop\.NET Development\MistbornDeckbuilding\Turn.cs SyntaxNode: private class OutOfOrder(string ... [ClassDeclarationSyntax]@[20710..20772) (477,4)-(477,66) System.NullReferenceException: Object reference not set to an instance of an object. at StyleCop.Analyzers.Helpers.LocationHelpers.GetLineSpan(SyntaxToken token) at StyleCop.Analyzers.LayoutRules.SA1500BracesForMultiLineStatementsMustNotShareLine.CheckBraces(SyntaxNodeAnalysisContext context, SyntaxToken openBraceToken, SyntaxToken closeBraceToken) at StyleCop.Analyzers.LayoutRules.SA1500BracesForMultiLineStatementsMustNotShareLine.HandleBaseTypeDeclaration(SyntaxNodeAnalysisContext context) at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock[TArg](DiagnosticAnalyzer analyzer, Action`1 analyze, TArg argument, Nullable`1 info, CancellationToken cancellationToken) in Z:\BuildAgent\work\3b7ce003563d6f8f\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerExecutor.cs:line 1182 ----- Suppress the following diagnostics to disable this analyzer: SA1500
AD0001: Analyzer 'StyleCop.Analyzers.LayoutRules.SA1508ClosingBracesMustNotBePrecededByBlankLine' 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: MistbornDeckbuilding SyntaxTree: C:\Users\evanriker\Desktop\.NET Development\MistbornDeckbuilding\Turn.cs SyntaxNode: private class OutOfOrder(string ... [ClassDeclarationSyntax]@[20710..20772) (477,4)-(477,66) System.NullReferenceException: Object reference not set to an instance of an object. at
StyleCop.Analyzers.Helpers.LocationHelpers.GetLineSpan(SyntaxToken token) at StyleCop.Analyzers.LayoutRules.SA1508ClosingBracesMustNotBePrecededByBlankLine.AnalyzeCloseBrace(SyntaxNodeAnalysisContext context, SyntaxToken closeBraceToken) at StyleCop.Analyzers.LayoutRules.SA1508ClosingBracesMustNotBePrecededByBlankLine.HandleBaseTypeDeclaration(SyntaxNodeAnalysisContext context) at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock[TArg](DiagnosticAnalyzer analyzer, Action`1 analyze, TArg argument, Nullable`1 info, CancellationToken cancellationToken) in Z:\BuildAgent\work\3b7ce003563d6f8f\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerExecutor.cs:line 1182 ----- Suppress the following diagnostics to disable this analyzer: SA1508
AD0001: Analyzer 'StyleCop.Analyzers.LayoutRules.SA1502ElementMustNotBeOnASingleLine' 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: MistbornDeckbuilding SyntaxTree: C:\Users\evanriker\Desktop\.NET Development\MistbornDeckbuilding\Turn.cs SyntaxNode: private class OutOfOrder(string ... [ClassDeclarationSyntax]@[20710..20772) (477,4)-(477,66) System.NullReferenceException: Object reference not set to an instance of an object. at StyleCop.Analyzers.Helpers.LocationHelpers.GetLineSpan(SyntaxToken token) at StyleCop.Analyzers.LayoutRules.SA1502ElementMustNotBeOnASingleLine.HandleBaseTypeDeclaration(SyntaxNodeAnalysisContext context) at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock[TArg](DiagnosticAnalyzer analyzer, Action`1 analyze, TArg argument, Nullable`1 info, CancellationToken cancellationToken) in Z:\BuildAgent\work\3b7ce003563d6f8f\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerExecutor.cs:line 1182 ----- Suppress the following diagnostics to disable this analyzer: SA1502
StyleCop.Analyzers.Helpers.LocationHelpers.GetLineSpan(SyntaxToken token) at StyleCop.Analyzers.LayoutRules.SA1508ClosingBracesMustNotBePrecededByBlankLine.AnalyzeCloseBrace(SyntaxNodeAnalysisContext context, SyntaxToken closeBraceToken) at StyleCop.Analyzers.LayoutRules.SA1508ClosingBracesMustNotBePrecededByBlankLine.HandleBaseTypeDeclaration(SyntaxNodeAnalysisContext context) at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock[TArg](DiagnosticAnalyzer analyzer, Action`1 analyze, TArg argument, Nullable`1 info, CancellationToken cancellationToken) in Z:\BuildAgent\work\3b7ce003563d6f8f\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerExecutor.cs:line 1182 ----- Suppress the following diagnostics to disable this analyzer: SA1508
AD0001: Analyzer 'StyleCop.Analyzers.LayoutRules.SA1502ElementMustNotBeOnASingleLine' 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: MistbornDeckbuilding SyntaxTree: C:\Users\evanriker\Desktop\.NET Development\MistbornDeckbuilding\Turn.cs SyntaxNode: private class OutOfOrder(string ... [ClassDeclarationSyntax]@[20710..20772) (477,4)-(477,66) System.NullReferenceException: Object reference not set to an instance of an object. at StyleCop.Analyzers.Helpers.LocationHelpers.GetLineSpan(SyntaxToken token) at StyleCop.Analyzers.LayoutRules.SA1502ElementMustNotBeOnASingleLine.HandleBaseTypeDeclaration(SyntaxNodeAnalysisContext context) at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock[TArg](DiagnosticAnalyzer analyzer, Action`1 analyze, TArg argument, Nullable`1 info, CancellationToken cancellationToken) in Z:\BuildAgent\work\3b7ce003563d6f8f\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerExecutor.cs:line 1182 ----- Suppress the following diagnostics to disable this analyzer: SA1502

Did you find this page helpful?