Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Analyser crash (ZeroFormatterCodeFixProvider) #119

Open
sybaris opened this issue Feb 25, 2020 · 0 comments
Open

Analyser crash (ZeroFormatterCodeFixProvider) #119

sybaris opened this issue Feb 25, 2020 · 0 comments

Comments

@sybaris
Copy link

sybaris commented Feb 25, 2020

Hi,

In Visual Studio, I had this error :

System.NullReferenceException : La référence d'objet n'est pas définie à une instance d'un objet.
at Microsoft.CodeAnalysis.CSharp.CSharpExtensions.Kind(SyntaxNode node)
at Microsoft.CodeAnalysis.CSharp.CodeGeneration.CSharpSyntaxGenerator.GetDeclarationKind(SyntaxNode declaration)
at Microsoft.CodeAnalysis.CSharp.CodeGeneration.CSharpSyntaxGenerator.AsNodeLike(SyntaxNode existingNode,SyntaxNode newNode)
at Microsoft.CodeAnalysis.CSharp.CodeGeneration.CSharpSyntaxGenerator.ReplaceNode(SyntaxNode root,SyntaxNode declaration,SyntaxNode newDeclaration)
at Microsoft.CodeAnalysis.Editing.SyntaxEditor.ReplaceChange.Apply(SyntaxNode root,SyntaxGenerator generator)
at Microsoft.CodeAnalysis.Editing.SyntaxEditor.GetChangedRoot()
at Microsoft.CodeAnalysis.Editing.DocumentEditor.GetChangedDocument()
at async ZeroFormatter.Analyzer.ZeroFormatterCodeFixProvider.AddIndexAttributeAndSetVirtual(<Paramètres inconnus>)
at async Microsoft.CodeAnalysis.CodeActions.CodeAction.GetChangedSolutionAsync(<Paramètres inconnus>)
at async Microsoft.CodeAnalysis.CodeActions.CodeAction.ComputeOperationsAsync(<Paramètres inconnus>)
at async Microsoft.CodeAnalysis.CodeActions.CodeAction.GetPreviewOperationsAsync(<Paramètres inconnus>)
at async Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.SuggestedAction.GetPreviewResultAsync(<Paramètres inconnus>)
at async Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.SuggestedActionWithNestedFlavors.<>c__DisplayClass11_0.b__0(<Paramètres inconnus>)
at async Microsoft.CodeAnalysis.Extensions.IExtensionManagerExtensions.PerformFunctionAsyncT

Regards,
Sybaris

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant