Geeksltd / GCop

GCop packages
https://geeksltd.github.io/GCop/
24 stars 8 forks source link

@218 Fixer - Running for the whole project #91

Open PaymonK opened 6 years ago

PaymonK commented 6 years ago

System.ArgumentException : Syntax node is not within syntax tree at Microsoft.CodeAnalysis.CSharp.CSharpSemanticModel.CheckSyntaxNode(CSharpSyntaxNode syntax) at Microsoft.CodeAnalysis.CSharp.SyntaxTreeSemanticModel.GetDeclaredSymbol(ParameterSyntax declarationSyntax,CancellationToken cancellationToken) at Microsoft.CodeAnalysis.CSharp.CSharpExtensions.GetDeclaredSymbol(SemanticModel semanticModel,ParameterSyntax declarationSyntax,CancellationToken cancellationToken) at async GCop.Common.FixProvider.Naming.ExtensionMethodFirstParamCodeFixProvider.ChangeParameterName() at async Microsoft.CodeAnalysis.CodeActions.CodeAction.GetChangedSolutionInternalAsync() at async Microsoft.CodeAnalysis.CodeFixes.BatchFixAllProvider.GetChangedDocumentsAsync() at async Microsoft.CodeAnalysis.CodeFixes.BatchFixAllProvider.GetDocumentIdToChangedDocuments() at async Microsoft.CodeAnalysis.CodeFixes.BatchFixAllProvider.TryMergeFixesAsync() at async Microsoft.CodeAnalysis.CodeFixes.BatchFixAllProvider.TryGetMergedFixAsync() at async Microsoft.CodeAnalysis.CodeFixes.BatchFixAllProvider.GetFixAsync() at async Microsoft.CodeAnalysis.CodeFixes.BatchFixAllProvider.GetFixAsync() at async Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.FixAllGetFixesService.GetFixAllCodeActionAsync() at async Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.FixAllGetFixesService.GetFixAllOperationsAsync() at async Microsoft.CodeAnalysis.CodeActions.CodeAction.GetOperationsCoreAsync() at async Microsoft.CodeAnalysis.CodeActions.CodeAction.GetOperationsAsync() at Roslyn.Utilities.TaskExtensions.WaitAndGetResult_CanCallOnBackground[T](Task1 task,CancellationToken cancellationToken) at Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.SuggestedAction.InvokeWorker(Func1 getFromDocument,IProgressTracker progressTracker,CancellationToken cancellationToken) at Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.SuggestedAction.<>c__DisplayClass18_0.b__0() at Microsoft.CodeAnalysis.Extensions.IExtensionManagerExtensions.PerformAction(IExtensionManager extensionManager,Object extension,Action action)

Foroughi commented 6 years ago

@PaymonK Would you please provide the context or the piece of code you got this error on?!