Bug Report T737630
Visible to All Users

IntelliRush – IntelliRush incorrectly expands the highlighted items when the VB.NET "With" statement is used in Visual Studio 2019

created 6 years ago

In Visual Studio 2019, when using the "With" statement in VB.NET, IntelliRush expands the highlighted item to an apostrophe (') instead of the selected IntelliRush text. This only happens when using the "With" statement.

PreConditions:

* Visual Studio 2019
 * CodeRush 18.2.9
 * IntelliRush is turned ON.

Test #1:

  1. Create a new VB.NET Console app in VS 2019.
  2. Ensure IntelliRush is turned ON.
  3. Insert the following code for Sub Main:
Visual Basic
Sub Main() Using reader As New IO.StreamReader("") With reader End With End Using End Sub
  1. On the blank line immediately after "With reader", type a dot (.). IntelliRush opens a list of properties and methods.
  2. Using the keyboard arrow keys, select any property or method and press the Tab key. The dot (.) changes to an apostrophe (').

Test #2:

  1. Turn IntelliRush OFF and repeat steps #4 and #5.
  2. This time the expansion is correct. The dot (.) is replace with the selected property or method.

This behavior does not happen in VS 2017 using IntelliRush. The selection expands as expected. For example, IntelliRush inserts ".BaseStream" when pressing Tab when the "BaseStream" item is highlighted.

Comments (3)
DevExpress Support Team 6 years ago

    Hello William,

    Thank you for providing a code sample and detailed explanations.
    I have installed the CodeRush 18.2.9 on a clean machine and tried to reproduce the issue.
    Only if I configure the 'Tab' key as a shortcut for the "TemplateExpand" command I have managed to expand the '.' char as a VB single line comment.
    But on my machine this behavior is not depending on enabling \ disabling IntelliRush.
    We will fix this issue and notify you as soon as we make any progress.

    To research why this issue is related to IntelliRush on your machine, it would be helpful if you provide the following information:
    - CodeRush settings (from "%AppData%\CodeRush\Settings");
    - CodeRush log files (from "%LocalAppData%\CodeRush\Logs").

    I look forward to hearing from you.

    WB WB
    William Besancenez 6 years ago

      Turning IntelliRush off doesn't seem to be a repeatable workaround. After I submitted this ticket, I went back to working on my current project. I had IntelliRush turned off and all seemed well but then the apostrophe bug reappeared. I doubled-checked that IntelliRush was off (it was). I tried turning it on and then back off. In any case, disabling CodeRush and restarting VS 2019 always works. Again, this does not happen in VS 2017 with CodeRush and IntelliSense either on or off.

      I do have Tab for expansion on. I had Space for that setting and it was driving me nuts. It would expand reserved words (like "as") and two-letter variable names. With it set to Tab, it's useable and useful for me.

      DevExpress Support Team 6 years ago

        Hello William,

        Thank you for your clarification and providing this information.

        I can confirm that I have exactly the same behavior on my machine with Visual Studio 2019.

        We will inform you when we fix this issue.

        Answers approved by DevExpress Support

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