Bug Report T601944
Visible to All Users

Refactorings - The "Rename namespace to match folder structure" refactoring handles namespace references incorrectly

created 7 years ago

Hi,

please check my sample project and see what I found while using refactor methods in my project.

Look for keyword ACTION (1 and 2) and find additional notes there.

Comments (3)
DevExpress Support Team 7 years ago

    Hi Thomas,

    Thank you for letting us know about this problem and for providing the sample project.

    Regarding the issue with attribute renaming, I should note that the Rename refactoring is a feature of Visual Studio, not CodeRush. I have managed to reproduce this behavior on my machine without CodeRush - see the video below:
    https://www.screencast.com/t/oIovZXRrkVni.
    Refer the following bug report for details: https://github.com/dotnet/roslyn/issues/21657.
    As for the issue with the "Rename namespace to match folder structure" refactoring, could you clarify what kind of problem you are experiencing? I have tried to test this feature with the project you provided, and it works fine on my machine. Here is a screencast illustrating the steps I performed: https://www.screencast.com/t/ZPAzQA5Ht4.

    I look forward to hearing from you.

    TW TW
    Thomas Wegener 7 years ago

      I can see the same behavior on my machine.

      But when i do "Rename namespace to match folder structure" refactoring, then my class "Testclass" show me an error, because the change in namespace reference is not reflected in this class. The import statement is missing after refactoring.

      DevExpress Support Team 7 years ago

        Hi Thomas,

        Thank you for the clarification, now I can see the problem.

        We are preparing the update for this issue. You'll be notified when a fix is ready.

        Answers approved by DevExpress Support

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