Bug Report T893563
Visible to All Users

Code Cleanup with Convert to string interpolation fails

created 5 years ago

Dear support,

I found that the code cleanup does not work completely. It does not format my code on save. I normally clean up my code on save. I always use string interpolation, sort the methods, properties and remove duplicate empty line. But nothing is changed now. Would you mind telling me how can I make it work again

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

    Thank you for the logs and content of Visual Studio's About dialog. I found the problem with the "Convert to string interpolation" clean up provider in the log. I suggest you temporarily disable this provider on the CodeRush\Options…\Editor\C#\Code Cleanup options page and check if the issue is gone.
    Clipboard-File-1.png

    Also it would be a great help if you can share with us content of the SampleFirstPage.aspx.cs file. This will help us to reproduce and fix the problem quickly.

      Attached is the SampleFirstPage.aspx.cs. You may find that some of the strings in the code are using string interpolation. It is because I manually apply the clean-up (ctrl + . and select string interpolation).

      Good news is after unchecking the string interpolation, code rush do other cleanup normally.

      DevExpress Support Team 5 years ago

        Thank you for the sample code file. I have reproduced the issue. We will keep you updated when the fix is ready.

        Answers approved by DevExpress Support

        created 5 years ago

        We have addressed the issue described in this ticket and will include a fix in our next maintenance update. To apply this solution before official release, request a hotfix by clicking the appropriate version link.

        Note: Hotfixes may be unavailable for betas/updates set for release within a week.

          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.