Bug Report T477079
Visible to All Users

General - Visual Studio 2017 RC3 - Can't open the QuickActions menu in XAML

created 8 years ago

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.

Comments (1)
DevExpress Support Team 8 years ago

    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.

    Answers approved by DevExpress Support

    created 8 years ago (modified 8 years ago)

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.