Bug Report T576909
Visible to All Users

Refactorings - Convert to string interpolation should be available for concatenated strings

created 7 years ago

Hello,
sometime in the past pressing <CTRL>DOT on a "string.format" showed "Convert to string interpolation" as a possible option. This does no longer work.
Am I wrong or did you change something ?
The corresponding flag in CodeRush options is set.
Thank you
Michael

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

    Hi Michael,

    Thank you for providing the screencast. It helped me reproduce the problem. Currently, CodeRush doesn't take into account the string concatenation expression (the "+" operator) that is passed as a format argument within the String.Format method call in your example. You will be notified when we prepare a fix.

      Ok, thank you !

      DevExpress Support Team 7 years ago

        Michael, you are always welcome!

        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.

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

            Hi Michael,

            Thank you for the update.
            I have examined the video you provided and noticed that the setup of CodeRush on your machine has not been completed or broken.
            To help us to understand the cause of the problem, provide us with Visual Studio's log file:

            1. Run Visual Studio with the /log command line switch and collect the activity log (log switch documentation).
            2. Search for the most recent ActivityLog.xml file inside AppData\Roaming\Microsoft\VisualStudio\15.0_InstanceId (while "15.0_InstanceId" looks similar to 15.0_0f1d8278, note that it might be different on your machine). Please send us the entire ActivityLog.xml file for research.

            Also, could you try to manually uninstall CodeRush and then install the hotfix once again. Follow these steps:

            1. Close all Visual Studio instances.
            2. Go to the %LocalAppData%\Microsoft\VisualStudio\15.0_InstanceId\ folder and remove the ComponentModelCache subfolder.
            3. Go to the %LocalAppData%\Microsoft\VisualStudio\15.0_InstanceId\Extensions folder and remove all subfolders that contain the DevExpress.CodeRush.Package.pkgdef file.
            4. Remove all .cache files from the %LocalAppData%\Microsoft\VisualStudio\15.0_InstanceId\Extensions folder.

            If you have several %LocalAppData%\Microsoft\VisualStudio\15.0_InstanceId\ folders on your machine, execute steps 2 - 4 for each of them.

            After that, install the hotfix once again and try to reproduce the issue.

            I'm waiting for your result.

              Hi Alex,

              to abreviate this process, I first tried to uninstall CodeRush and re-installed it after a reboot.
              Now all works fine, the hell knows, why.

              Thank you for your effort !
              Michael

              DevExpress Support Team 7 years ago

                Michael,

                I'm happy to hear that the problem was resolved. Thank you for informing us.
                If you need any further help with this subject, feel free to reactivate this ticket.

                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.