Bug Report T557548
Visible to All Users

Naming Assistant shows a suggestion at the wrong position

created 7 years ago

Steps to reproduce:
- Create a new console application.
- In the Main(…) method, start at an empty line
- Write "StringBuilder builder=new"

I now naturally want to make a space and then type "StringBuilder();"
BUT, when I enter the space bar CodeRush will instead replace my variable name "builder" with "StringBuilder". (seems to execute som "new" template or something)

NOTE: It only happens when you write that in a flow/sequence. Copy pasting etc prevents it from happening.

Only way to prevent it is to press the escape key, before the space bar.

Show previous comments (2)
MN MN
Marcus Nilsson 7 years ago

    Hi,
    I did a screen capture of it. Multiple tries after each other.
    Only keys I pressed (which you don't see) is the spacebar. So it is when I press the spacebar after "new" that is behaves strange.

    MN MN
    Marcus Nilsson 7 years ago

      Just for clarification: I disabled the Coderush plugin in Visual Studio and retried.
      No problems, behaves as expected (doesn't rename my variable).

      So it is related to Coderush. I also have this behavior on two different computers where I copied the CodeRush settings between from one to the other (same configuration as I provided earlier). The second computer was brand-new with a fresh installation of VS 2017.

      AE AE
      Alex Eg (DevExpress) 7 years ago

        Marcus,
        Thank you for the screencast. I have reproduced the issue using your steps. Our team is working on it.

        Answers approved by DevExpress Support

        created 7 years ago (modified 7 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.