roslyn icon indicating copy to clipboard operation
roslyn copied to clipboard

System.InvalidOperationException

Open vsfeedback opened this issue 3 years ago • 0 comments

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


[severity:It bothers me. A fix would be nice]

System.InvalidOperationException : Operation is not valid due to the current state of the object. at Microsoft.CodeAnalysis.Shared.Extensions.SemanticModelExtensions.GetRequiredDeclaredSymbol(SemanticModel semanticModel,SyntaxNode declaration,CancellationToken cancellationToken) at Microsoft.CodeAnalysis.MoveStaticMembers.AbstractMoveStaticMembersRefactoringProvider.<>c__DisplayClass1_0.b__0(SyntaxNode m) at System.Collections.Immutable.ImmutableArray.CreateRange[TSource,TResult](ImmutableArray1 items,Func2 selector) at async Microsoft.CodeAnalysis.MoveStaticMembers.AbstractMoveStaticMembersRefactoringProvider.ComputeRefactoringsAsync() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at async Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.GetRefactoringFromProviderAsync()


Original Comments

Feedback Bot on 12/11/2022, 07:02 PM:

(private comment, text removed)

Feedback Bot on 12/12/2022, 05:43 AM:

(private comment, text removed)


Original Solutions

(no solutions)

vsfeedback avatar Dec 12 '22 23:12 vsfeedback