Bug Report T499420
Visible to All Users

Code Providers - The "IntroduceSetterBody" provider causes an error

created 8 years ago

Here is the stack trace from Visual Studio's notification:

C#
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>)

CodeRush log file is attached.

Show previous comments (6)
DevExpress Support Team 8 years ago

    Hi Jim,
    We've prepared a build with the corrections. Here is a link.http://downloads.devexpress.com/Share/IDE/170404/DevExpress.CodeRush.Roslyn-16.2.7.17094.vsix
    Please install it and let us know if the error is fixed.

      Thanks Eugene, I tried this new build and the problem reoccurred within a few minutes.
      I confirmed I'm using the new 17094 version via the CodeRush/About window.
      The stack trace is identical.
      The attached zip file contains the log file and a complete solution to reproduce the problem.
      I even found a specific action that reproduces it:

      1. Open the file T499420.Module\BusinessObjects\Location.cs
          2. Move your cursor to be somewhere inside the text of the "[RuleRequiredField]" attribute on line 22.
          3. Use the Ctrl+. key combination, the error is triggered.

      DevExpress Support Team 8 years ago

        Hi Jim,

        Thank you very much for sending us the test project.
        I've reprodused the problem.
        Please give us some time. We will prepare a correction and let you know about this.

        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 (2)
          CI CI
          Christian Ista 8 years ago

            not possible to publish the vsix installer ?

            Thanks,

            DevExpress Support Team 8 years ago

              Yes, of course.
              We have uploaded the CodeRush for Roslyn .vsix installer too.
              Thanks

              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.