Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple info bars in VB file #18499

Closed
rchande opened this issue Apr 6, 2017 · 2 comments
Closed

Multiple info bars in VB file #18499

rchande opened this issue Apr 6, 2017 · 2 comments

Comments

@rchande
Copy link
Contributor

rchande commented Apr 6, 2017

New VB console app with the following text:

Class C
    Sub Main()
        For a = 0 To 1 Step 1
            For b = 0 To 2
        Next b, a
    End Sub
End Class

Place the caret at position 0 (before class).
Two error bars appear:

'VisualBasicInitializeMemberFromParameterCodeRefactoringPorivder":

System.NullReferenceException : Object reference not set to an instance of an object.
   at Microsoft.CodeAnalysis.InitializeParameter.AbstractInitializeParameterCodeRefactoringProvider`5.GetParameterNode(SyntaxToken token,Int32 position)
   at async Microsoft.CodeAnalysis.InitializeParameter.AbstractInitializeParameterCodeRefactoringProvider`5.ComputeRefactoringsAsync[TParameterSyntax,TMemberDeclarationSyntax,TStatementSyntax,TExpressionSyntax,TBinaryExpressionSyntax](<Unknown Parameters>)
   at async Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.GetRefactoringFromProviderAsync(<Unknown Parameters>)
   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

'VisualBasicAddParameterCheckCodeRefactoringProvider':

System.NullReferenceException : Object reference not set to an instance of an object.
   at Microsoft.CodeAnalysis.InitializeParameter.AbstractInitializeParameterCodeRefactoringProvider`5.GetParameterNode(SyntaxToken token,Int32 position)
   at async Microsoft.CodeAnalysis.InitializeParameter.AbstractInitializeParameterCodeRefactoringProvider`5.ComputeRefactoringsAsync[TParameterSyntax,TMemberDeclarationSyntax,TStatementSyntax,TExpressionSyntax,TBinaryExpressionSyntax](<Unknown Parameters>)
   at async Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.GetRefactoringFromProviderAsync(<Unknown Parameters>)
   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
@rchande
Copy link
Contributor Author

rchande commented Apr 6, 2017

I have VS set up to dogfood Roslyn and 2.3.0.6160605 is currently installed.

@CyrusNajmabadi
Copy link
Member

Fixed with #18487

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants