Bug Report T608528
Visible to All Users

Selection Embedding handles typing the 'c' character even if only a part of the line is selected

created 7 years ago

This appears to only be a problem for VB, in C# it behaves correctly.

Consider the following code:

Visual Basic
Public Function Test() As String Dim astring = "123" Dim cstring = "blah" Return astring End Function

On the return line, select astring then press the c key on your keyboard (eg, to change it to return cstring). Instead of the selection being replaced with the letter 'c', the try catch embedding is triggered:

Visual Basic
Public Function Test() As String Dim astring = "123" Dim cstring = "blah" Try Return astring Catch ex As Exception End Try End Function

In C# this is only triggered if the entire line is selected, so it looks like the scope is broken. The same sort of thing happens with 'n', 'f', etc. This is really irritating, so I'd welcome a quick fix for it. Not sure why, but I've only noticed it in the last day or so, despite not updating coderush or visual studio recently. Only extension that has changed was an update to the MS reporting services project extension.

Show previous comments (5)
DevExpress Support Team 7 years ago

    Hi Kevin,

    We have fixed this issue and prepared a build with hotfix: CodeRush.Roslyn-17.2.6.18053.exe.
    Please install it and let us know how it works.

    KO KO
    Kevin O'Donovan 7 years ago

      Thanks Pavel. I've installed that and it seems to have done the trick. Are you able to say what caused it? I'm not aware of any changes to my environment (other than the reporting services extension I mentioned) that might have triggered it, but I had so many occurrences yesterday with none before that, that it's hard to believe it had been a problem for a while

      DevExpress Support Team 7 years ago

        Thank you for the update, Kevin. We are happy to hear that the issue is resolved.
        It was exactly the CodeRush issue that we introduced in the latest release and it is not related to your environment.
        The next release will contain a hotfix.

        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.