You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a bug in syntax trees that occurred recently due to a switch to using binary search for large lists. The binary search is finding a node by position that is zero-width, which is not a node that is said to contain the position.
mattwar
added a commit
to mattwar/roslyn
that referenced
this issue
Feb 20, 2015
I keep running into this crash when attempting to delete an argument from a particular method invocation...
Crash dump is located on internal file share under ...\dumps\605
ArgumentOutOfRangeException:
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ChildThatContainsPosition(Int32 position)
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.FindTokenInternal(Int32 position)
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.FindToken(Int32 position, Boolean findInsideTrivia)
at Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.Blender.ExtendToAffectedRange(CSharpSyntaxNode oldTree, TextChangeRange changeRange)
at Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.Blender..ctor(Lexer lexer, CSharpSyntaxNode oldTree, IEnumerable
1 changes) at Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.SyntaxParser..ctor(Lexer lexer, LexerMode mode, CSharpSyntaxNode oldTree, IEnumerable
1 changes, Boolean allowModeReset, Boolean preLexIfNotIncremental, CancellationToken cancellationToken)at Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.LanguageParser..ctor(Lexer lexer, CSharpSyntaxNode oldTree, IEnumerable
1 changes, LexerMode lexerMode, CancellationToken cancellationToken) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxTree.WithChanges(SourceText newText, IReadOnlyList
1 changes)at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxTree.WithChangedText(SourceText newText)
at Microsoft.CodeAnalysis.DocumentState.d__9.MoveNext() in F:\Builds\6272\Roslyn\Main-Signed-Release\src\Open\src\Workspaces\Core\Portable\Workspace\Solution\DocumentState.cs:line 146
The text was updated successfully, but these errors were encountered: