Skip to content

Add asserts to help diagnose signature help crash #832#848

Merged
JsonFreeman merged 2 commits into
masterfrom
sigHelpCrash
Oct 7, 2014
Merged

Add asserts to help diagnose signature help crash #832#848
JsonFreeman merged 2 commits into
masterfrom
sigHelpCrash

Conversation

@JsonFreeman
Copy link
Copy Markdown
Contributor

Bug #832 is a crash that I cannot reproduce. There are a few plausible causes for this crash, so I'm adding a few asserts to catch these cases in an effort to learn more. These asserts should not be fatal, and they should not degrade the user experience.

The basic problem is that we are looking at the children of a call expression, trying to find a list child that contains a given span. The 2 asserts I have do the following:

  1. Assert that as we walk up the tree, every node's span is contained in its parent's span
  2. If we did not find list children containing the span of interest, assert that we can at least find list children.

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

👍

JsonFreeman added a commit that referenced this pull request Oct 7, 2014
Add asserts to help diagnose signature help crash #832
@JsonFreeman JsonFreeman merged commit 37a839f into master Oct 7, 2014
@JsonFreeman JsonFreeman deleted the sigHelpCrash branch October 7, 2014 23:05
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants