Bug Report T1099591
Visible to All Users

CodeRush - Code Actions - The "Declare..." window gets closed unexpectedly after it's invoked from the lightbulb menu

created 3 years ago

When using the Code Actions (Ctrl + .) shortcut and selecting the "Declare…" option using the arrow / Enter key the dialog displays briefly then closes unexpectedly.

See attached video demonstrating the problem.

This also happens when using the mouse to activate the Code Actions from the left hand side and selecting Declare…

Comments (2)

    I have managed to pick up the following from the CodeRush Logs folder:

    Code
    2022.06.30 15:58:40.7838 Error: Message: Object reference not set to an instance of an object. 2022.06.30 15:58:40.7838 Error: Type: System.NullReferenceException 2022.06.30 15:58:40.7838 Error: HResult: 80004003 2022.06.30 15:58:40.7838 Error: Source: DevExpress.CodeRush.Intellisense.Dev17 2022.06.30 15:58:40.7838 Error: StackTrace: 2022.06.30 15:58:40.7838 Error: at DevExpress.CodeRush.Intellisense.SmartTag.UI.SmartTagMenuViewModel.<>c__DisplayClass115_0.<SetOptimalSize>b__2()
    PW PW
    Przemyslaw Wlodarczak (DevExpress) 3 years ago

      Hi,

      I reproduced this issue and passed it to our developers for further research. Please bear with us.
      As a workaround for now, use the Alt+Insert shortcut to open the "Declare" dialog.

      Answers approved by DevExpress Support

      created 3 years ago

      We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.

      Important Notes:

      • Hotfixes may be unavailable for Early Access/Beta builds or updates set for release within a week.
      • .NET only: in the NuGet Package Manager, use your personal NuGet feed and check the "Include prerelease" option to view the hotfix package in the "Updates" tab.

        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.