Bug Report T862088
Visible to All Users

Refactorings - The “Import Missing Namespaces” refactoring initiates a dead lock

created 5 years ago

The "Import Missing Namespaces" Code Actions sounds like a great idea to import all namespaces that are missing in a given context. But I found that most of the time it either imports just one / a part of the actual missing namespaces or does flat out nothing at all. Do I do something wrong or is that feature designed differently?

Comments (1)
DevExpress Support Team 5 years ago

    Hi,

    The Import Missing Namespaces refactoring is adding all missing namespace references except types which are available in more than one namespace. Your report looks like a bug inside refactoring.
    Please send us the CodeRush log files from the CodeRush\Support\CodeRush Logs… menu item. It would be great if you can create a small sample project or record a video illustrating the issue.

    I'm looking forward to your reply.

    Answers approved by DevExpress Support

    created 5 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 (5)
      DevExpress Support Team 5 years ago

        Hi,

        Thank you for the clarification. This refactoring works inside a selected code block with missing namespaces or for active code elements. To import all references into the current file, you need to select all text (Ctrl+A).

        Let me know your result.

          Ah your right. When I select everything first it works as expected. Thanks!

          DevExpress Support Team 5 years ago

            You are welcome!

            Other Answers

            created 5 years ago

            Hi and thanks for the quick response.
            I made several videos.

            1. In one Code Rush just freezes VS and I had to kill VS via the task manager.
            2. In another one it starts "importing references" and after a minute or so I tried to cancel which didn't work as well. So I had to kill VS again via the task manager. I had to compress that one via 7zip to be able to upload it.
            3. The actual behaviour I meant: you can hit "Import missing References" and it imports one or does nothing. Or it doesn't even recognise a code action till you reopen the file.

            All the samples where made with this project: https://github.com/NPadrutt/MoneyFox.Windows
            The solution File I used was the MoneyFox.Desktop.sln. The File is the AccountListViewModel.

            Also I ziped and attached my whole log folder.

            Thanks
            Nino

              Comments (1)
              DevExpress Support Team 5 years ago

                Hi Nino,

                Thank you for the additional information. I reproduced this issue. We need some time to research it and check for a possible solution.

                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.