Hi,
Since the last update to VS2017RC (build 26127.00) can't open QuickActions menu in XAML, thus can't format the document.
I tried reinstalling CodeRush, didn't solve the problem.
In the CR log there is an error (may or may not related to this problem):
Information: CodeRush Engine Started
Information: Initializing CodeRush package
Error: Message: Method 'get_RefCustomModifiers' in type 'DevExpress.CodeAnalysis.Xaml.Symbols.DirectiveSymbol' from assembly 'DevExpress.CodeAnalysis.Xaml, Version=16.2.4.0, Culture=neutral, PublicKeyToken=' does not have an implementation.
Error: Type: System.TypeLoadException
Error: Source: DevExpress.CodeAnalysis.Xaml
Error: StackTrace: at DevExpress.CodeAnalysis.Xaml.ProjectSemanticModel…ctor(Project project, IEnumerable`1 documents)
at DevExpress.CodeRush.XamlLanguage.XamlServices.<GetSemanticModelAsync>d__26.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DevExpress.CodeAnalysis.Xaml.XamlDocument.<GetSemanticModelAsync>d__8.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DevExpress.CodeRush.VisualizePlugins.ShowColor.Xaml.XamlColorProvider.<GetColors>d__5.MoveNext()
at DevExpress.CodeRush.VisualizePlugins.ShowColor.ColorSearcher.GetAllColors(ITextDocument textDocument, TextSpan span)
at DevExpress.CodeRush.VisualizePlugins.ShowColor.ColorServices.<DecorateCurrentDocuments>b__16_0()
Error: Message: Method 'get_RefCustomModifiers' in type 'DevExpress.CodeAnalysis.Xaml.Symbols.DirectiveSymbol' from assembly 'DevExpress.CodeAnalysis.Xaml, Version=16.2.4.0, Culture=neutral, PublicKeyToken=' does not have an implementation.
Error: Type: System.TypeLoadException
Error: Source: DevExpress.CodeAnalysis.Xaml
Error: StackTrace: at DevExpress.CodeAnalysis.Xaml.ProjectSemanticModel…ctor(Project project, IEnumerable`1 documents)
at DevExpress.CodeRush.XamlLanguage.XamlServices.<GetSemanticModelAsync>d__26.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DevExpress.CodeAnalysis.Xaml.XamlDocument.<GetSemanticModelAsync>d__8.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DevExpress.CodeRush.VisualizePlugins.ShowColor.Xaml.XamlColorProvider.<GetColors>d__5.MoveNext()
at DevExpress.CodeRush.VisualizePlugins.ShowColor.ColorSearcher.GetAllColors(ITextDocument textDocument, TextSpan span)
at DevExpress.CodeRush.VisualizePlugins.ShowColor.ColorServices.<DecorateCurrentDocuments>b__16_0()
Error: Exception was occurred while executing command View.QuickActions
Error: Message: Exception of type 'System.Exception' was thrown.
Error: Type: System.Exception
Error: Source: EnvDTE
Error: StackTrace: at EnvDTE._DTE.ExecuteCommand(String CommandName, String CommandArgs)
at DevExpress.CodeRush.Package.CommandServices.Execute(Command command, String parameters)
Error: Message: Object reference not set to an instance of an object.
Error: Type: System.NullReferenceException
Error: Source: DevExpress.CodeRush.Platform
Error: StackTrace: at DevExpress.CodeRush.Platform.ReflectionAccessObject.InvokeMethod[TArg1,TArg2,TArg3,TResult](String name, TArg1 arg1, TArg2 arg2, TArg3 arg3)
at DevExpress.CodeAnalysis.RoslynTypeInferenceServiceImpl.InferTypes(SemanticModel semanticModel, Int32 position, CancellationToken cancellationToken)
at DevExpress.CodeAnalysis.CSharp.IdentifierNameSyntaxExt.IsEventHandler(SimpleNameSyntax identifier, Document document, SemanticModel semanticModel, CancellationToken cancellationToken, ITypeSymbol& delegateSymbol)
at DevExpress.CodeAnalysis.CSharp.CodeDeclare.MethodAvailabilityHelper.IsAvailableIdentifier(SemanticModel semanticModel, Document document, CancellationToken cancellationToken, SimpleNameSyntax targetIdentifier)
at DevExpress.CodeAnalysis.CSharp.CodeDeclare.MemberAvailabilityHelper.<GetAvailableNode>d__1.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DevExpress.CodeAnalysis.CSharp.CodeDeclare.DeclareMemberRefactoring.<RefactoringIsAvailable>d__6.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DevExpress.CodeAnalysis.Refactorings.RefactoringAction.<IsAvailable>d__8.MoveNext()
Error: Message: Method 'get_RefCustomModifiers' in type 'DevExpress.CodeAnalysis.Xaml.Symbols.DirectiveSymbol' from assembly 'DevExpress.CodeAnalysis.Xaml, Version=16.2.4.0, Culture=neutral, PublicKeyToken=' does not have an implementation.
Error: Type: System.TypeLoadException
Error: Source: DevExpress.CodeAnalysis.Xaml
Error: StackTrace: at DevExpress.CodeAnalysis.Xaml.ProjectSemanticModel…ctor(Project project, IEnumerable`1 documents)
at DevExpress.CodeRush.XamlLanguage.XamlServices.<GetSemanticModelAsync>d__26.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DevExpress.CodeAnalysis.Xaml.XamlDocument.<GetSemanticModelAsync>d__8.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DevExpress.CodeAnalysis.Xaml.Features.Refactorings.RefactoringContext.<GetSemanticModelAsync>d__2.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DevExpress.CodeAnalysis.Xaml.Features.Refactorings.OptimizeNamespaceReferences.OptimizeNamespaceReferencesRefactoring.<IsAvailable>d__3.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DevExpress.CodeAnalysis.Xaml.Features.Refactorings.BaseXamlRefactoring.<DevExpress-CodeRush-Foundation-LightBulb-ILightBulbAction-IsAvailable>d__3.MoveNext()
Error: Message: Method 'get_RefCustomModifiers' in type 'DevExpress.CodeAnalysis.Xaml.Symbols.DirectiveSymbol' from assembly 'DevExpress.CodeAnalysis.Xaml, Version=16.2.4.0, Culture=neutral, PublicKeyToken=' does not have an implementation.
Hi Gábor,
Thank you for pointing us to this problem.
We have reproduced this behavior locally on the VS2017RC (build 26127.00) version. You'll be notified immediately when the fix is ready.