Bug Report T493274
Visible to All Users

Refactorings - Getting a lots of different error messages when invoking the Quick Actions menu

created 8 years ago

Since installing VS2017 I've been getting a lot of these messages, easily ten a day. I select the enable and ignore future errors option, but I still get errors on the same components. The latest one is ParameterRefactoringProvider, but I'd say i'm seeing the error on at least three or four different ones.Here's the stack trace from the current one:

System.NullReferenceException : Object reference not set to an instance of an object.
   at async DevExpress.CodeAnalysis.Refactorings.RefactoringAction.IsAvailable(<Unknown Parameters>)
   at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.RefactoringIsAvailable(<Unknown Parameters>)
   at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.GetAvailableRefactorings(<Unknown Parameters>)
   at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.ComputeRefactoringsAsync(<Unknown Parameters>)
   at async Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.GetRefactoringFromProviderAsync(<Unknown Parameters>)

This for VB.Net. Latest instance was editing a unit test class (NUnit), but I'm getting them all over the place

Any thoughts?

Show previous comments (7)
KO KO
Kevin O'Donovan 8 years ago

    I've had it on a number of different providers, and it seems that fixing one does not fix the others. I know there are more fixes for ones I've reported due in the next release. Hopefully that will be a general fix, but we won't know until it's released

    MC MC
    Matt Comstock 1 8 years ago

      With the ForEachToForProvider provider I mentioned, I was getting the error reported before I would even invoke the Quick Action menu - just changing from one source file to another can (but doesn't always) trigger the message. But right now as I write this reply, I can't get it to occur, and the "For Each To For" refactor subsequently shows up in the Quick Action menu.

      DevExpress Support Team 8 years ago

        Hello Matt and Kevin,

        > Lots of repeated errors from ForEachToForProvider, same exact stack trace as the original report.

        Thank you for pointing out this issue to us.
        To help us in our research, would you please provide us with CodeRush log files (they can be obtained here: %LocalAppData%\CodeRush\Logs)?
        They contain additional information that should help us detect and fix this particular issue.

        > It's getting quite annoying. I do not see these errors in VS 2015, although I have the same version of CR Roslyn running in each.

        You are right, most of these issues are reproducible only in VS 2017, because VS 2015 and VS 2017 parse the same code, while you are typing data in different ways.

        > I've had it on a number of different providers, and it seems that fixing one does not fix the others. I know there are more fixes for ones I've reported due in the next release. Hopefully that will be a general fix, but we won't know until it's released

        We are working on a general fix that will prevent such issues with any CRR code actions.
        We plan to ship this fix with the next CRR release in a few days.

        Answers approved by DevExpress Support

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

          Comments (1)
          MC MC
          Matt Comstock 1 8 years ago

            Hello - I'm getting this same type of behavior with v16.2.7 installed on VS 2017 and using VB.

            Lots of repeated errors from ForEachToForProvider, same exact stack trace as the original report.

            It's getting quite annoying. I do not see these errors in VS 2015, although I have the same version of CR Roslyn running in each.

            Please let me know if you need additional information.

            Thanks,
            Matt

            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.