1

Closed

ArgumentOutOfRangeException when typing backslash at EOF

description

Occurs whenever you type a backslash at the end of the file. Displays the "See activity log" message but continues to work.

The exception is:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: column must be greater than or equal to 1
 at Microsoft.PythonTools.Parsing.SourceLocation.ValidateLocation(Int32 index, Int32 line, Int32 column) in ...\Analysis\Parsing\SourceLocation.cs:line 52
 at Microsoft.PythonTools.Parsing.SourceLocation..ctor(Int32 index, Int32 line, Int32 column) in ...\Analysis\Parsing\SourceLocation.cs:line 37
 at Microsoft.PythonTools.Parsing.Tokenizer.IndexToLocation(Int32 index) in ...\Analysis\Parsing\Tokenizer.cs:line 137
 at Microsoft.PythonTools.Parsing.Tokenizer.ReadToken() in ...\Analysis\Parsing\Tokenizer.cs:line 233
 at Microsoft.PythonTools.Parsing.Tokenizer.ReadTokens(Int32 characterCount) in ...\Analysis\Parsing\Tokenizer.cs:line 110
 at Microsoft.PythonTools.PythonClassifier.TokenizeLine(Tokenizer tokenizer, ITextSnapshot snapshot, Object previousLineState, Int32 lineNo) in ...\PythonTools\PythonTools\PythonClassifier.cs:line 319
 at Microsoft.PythonTools.PythonClassifier.ApplyChange(Tokenizer tokenizer, ITextSnapshot snapshot, Span span) in ...\PythonTools\PythonTools\PythonClassifier.cs:line 288
 at Microsoft.PythonTools.PythonClassifier.BufferChanged(Object sender, TextContentChangedEventArgs e) in ...\PythonTools\PythonTools\PythonClassifier.cs:line 127
 at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)
Closed Aug 29, 2013 at 1:06 AM by huguesv

comments