Bug Report T1183824
Visible to All Users

Jump Codes stops working when there is large collapsed code on the screen

created 2 years ago (modified 2 years ago)

Visual Studio 17.7.0 Community Edition

Jump codes UI force closes when there is enough collapsed code above the jump location.

For example in a class like this one:

C#
internal class JumpCodes { void Some27LineMethod() // 1 { // 2 Console.WriteLine("3"); Console.WriteLine("4"); Console.WriteLine("5"); Console.WriteLine("6"); Console.WriteLine("7"); Console.WriteLine("8"); Console.WriteLine("9"); Console.WriteLine("10"); Console.WriteLine("11"); Console.WriteLine("12"); Console.WriteLine("13"); Console.WriteLine("14"); Console.WriteLine("15"); Console.WriteLine("16"); Console.WriteLine("17"); Console.WriteLine("18"); Console.WriteLine("19"); Console.WriteLine("20"); Console.WriteLine("21"); Console.WriteLine("22"); Console.WriteLine("23"); Console.WriteLine("24"); Console.WriteLine("25"); Console.WriteLine("26"); } // 27 public string JumpHere = "<---"; }

If no code is collapsed there is no issue. However if the Some27LineMethod is collapsed and visible on screen trying to jump to the JumpHere field closes the jump code UI. The UI closure takes place when entering first letter of the jump code navigating to the JumpHere field. The entered letter is typed normally as if the jump code UI was never activated.

Steps to reproduce:

  1. Paste the class
  2. Collapse Some27LineMethod method
  3. Keep both the collapsed method and JumpHere field on screen
  4. Open CodeRush jump codes UI (Caps + Tab)
  5. Enter the first letter of the jump code navigating to the JumpHere field (This is when the issue arises)

The issue doesn't seem to appear if the collapsed code is not visible on screen or if it's below the chosen jump location. Additionally jump codes seems to break only if the collapsed code preceding jump location has a certain minimal amount of lines. Collapsing any sort of content including comments, regions, methods and so on can break the jump codes when above jump location and long enough. Multiple shorter collapsed blocks visible on screen can also break jump codes (as long as they precede the chosen jump location).

Comments (1)
PW PW
Przemyslaw Wlodarczak (DevExpress) 2 years ago

    Jakub,

    Thank you for such a detailed bug report. I reproduced this behavior. We will investigate it and follow up once we have any results.

    Answers approved by DevExpress Support

    created 2 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.