Good morning, I am getting the error 'DeclareProvider' encountered an error and has been disabled' on a fairly regular basis. Using vb.net with VS2022.
Stack trace shown below.
System.ArgumentNullException : Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
at DevExpress.CodeAnalysis.VisualBasic.IdentifierNameSyntaxExt.IsDelegateType(SimpleNameSyntax identifier,Document document,SemanticModel semanticModel,CancellationToken cancellationToken,ITypeSymbol& delegateSymbol)
at DevExpress.CodeAnalysis.VisualBasic.CodeDeclare.MethodAvailabilityHelper.IsAvailableIdentifier(Document document,SemanticModel semanticModel,CancellationToken cancellationToken,SimpleNameSyntax targetIdentifier)
at DevExpress.CodeAnalysis.VisualBasic.CodeDeclare.MethodAvailabilityHelper.HasAvailableIdentifier(SemanticModel semanticModel,Document document,CancellationToken cancellationToken,SyntaxNode root,TextSpan textSpan,SimpleNameSyntax& targetIdentifier)
at async DevExpress.CodeAnalysis.VisualBasic.CodeDeclare.MemberAvailabilityHelper.GetAvailableNode(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async DevExpress.CodeAnalysis.VisualBasic.CodeDeclare.DeclareMemberRefactoring.RefactoringIsAvailable(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.GetAvailableRefactorings(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.ComputeRefactoringsAsync(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.<>c__DisplayClass12_0.<GetRefactoringFromProviderAsync>b__0(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.CodeAnalysis.Extensions.IExtensionManagerExtensions.PerformFunctionAsync[T](<Unknown Parameters>)
Dave,
Thank you for the report. We are already aware of this issue and are working on a fix.