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

NullReferenceException when displaying tooltip for the suggestion mode item #26145

Closed
AmadeusW opened this issue Apr 13, 2018 · 1 comment
Closed
Assignees
Milestone

Comments

@AmadeusW
Copy link
Contributor

AmadeusW commented Apr 13, 2018

Version Used: 15.6.5

Steps to Reproduce:

  1. Ctrl+Alt+Space to activate suggestion mode
  2. Type in the editor
  3. Use the arrow up to navigate to the suggestion item

Expected Behavior:

Displaying the tooltip does not cause an error

Actual Behavior:

There is an error when creating tooltip for the suggestion item

System.NullReferenceException: Object reference not set to an instance of an object.
at 
Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.Completion.Presentation.ToolTipProvider.CancellableContentControl..ctor(ToolTipProvider toolTipProvider, CustomCommitCompletion item)
at 
Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.Completion.Presentation.ToolTipProvider.GetUIElement(Completion itemToRender, ICompletionSession context, UIElementType elementType)
at 
Microsoft.VisualStudio.Language.Intellisense.Implementation.Helpers.<>c__DisplayClass7_0`2.<FindUIElement>b__0(IUIElementProvider`2 provider)
at 
Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension,TMetadata,TExtensionInstance](Object errorSource, Lazy`2 provider, Func`2 getter)
--- End of stack trace from previous location where exception was thrown ---
at 
Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

Note that this will be fixed through the new completion API in #25770 via @dpoeschl

@jinujoseph jinujoseph added this to the 15.8 milestone Apr 15, 2018
@jinujoseph jinujoseph modified the milestones: 15.8, 16.0 Jun 7, 2018
@jinujoseph jinujoseph assigned ivanbasov and unassigned dpoeschl Jan 18, 2019
@jinujoseph jinujoseph modified the milestones: 16.0, 16.0.P3 Jan 18, 2019
@ivanbasov
Copy link
Contributor

Could not reproduce with the current version of VS (2019 Preview 2). It seems to be fixed maybe with #32307

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

4 participants