-
Notifications
You must be signed in to change notification settings - Fork 830
Closed
Labels
Milestone
Description
- Clone this solution: https://github.com/cartermp/giraffesample
- Add a script file in the web app project
- Type
#load
Observe this:
<entry>
<record>2028</record>
<time>2017/12/13 20:56:52.395</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index
 at
Microsoft.VisualStudio.Text.Implementation.UnaryStringRebuilder.GetChar(Char[] content, Int32 index)
 at
Microsoft.VisualStudio.Text.Implementation.StringRebuilderForChars.get_Item(Int32 index)
 at
Microsoft.VisualStudio.Text.Implementation.CachingTextImage.get_Item(Int32 position)
 at
Microsoft.CodeAnalysis.Text.Extensions.SnapshotSourceText.get_Item(Int32 position)
 at
Microsoft.VisualStudio.FSharp.Editor.FSharpCompletionProvider.ShouldTriggerCompletionAux(SourceText sourceText, Int32 caretPosition, CompletionTriggerKind trigger, FSharpFunc`2 getInfo)
 at Microsoft.VisualStudio.FSharp.Editor.FSharpCompletionProvider.ShouldTriggerCompletion(SourceText sourceText, Int32 caretPosition, CompletionTrigger trigger, OptionSet _arg1)
 at
Microsoft.CodeAnalysis.Completion.CompletionServiceWithProviders.<>c__DisplayClass33_0.<ShouldTriggerCompletion>b__0(CompletionProvider p)
 at
System.Linq.ImmutableArrayExtensions.Any[T](ImmutableArray`1 immutableArray, Func`2 predicate)
 at
Microsoft.CodeAnalysis.Completion.CompletionServiceWithProviders.ShouldTriggerCompletion(SourceText text, Int32 caretPosition, CompletionTrigger trigger, ImmutableHashSet`1 roles, OptionSet options)
 at
Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.Completion.Controller.IsTextualTriggerCharacter(CompletionService completionService, Char ch, OptionSet options)
 at
Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.Completion.Controller.Microsoft.CodeAnalysis.Editor.ICommandHandler<Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs>.ExecuteCommand(TypeCharCommandArgs args, Action nextHandler)
 at
Microsoft.CodeAnalysis.Editor.CommandHandlers.AbstractCompletionCommandHandler.ExecuteCommandWorker[TCommandArgs](TCommandArgs args, Action nextHandler)
 at
Microsoft.CodeAnalysis.Editor.CommandHandlers.AbstractCompletionCommandHandler.Microsoft.CodeAnalysis.Editor.ICommandHandler<Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs>.ExecuteCommand(TypeCharCommandArgs args, Action nextHandler)
 at
Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.<>c__DisplayClass6_1`1.<ExecuteHandlers>b__1()
 at
Microsoft.CodeAnalysis.Editor.Implementation.Formatting.FormatCommandHandler.ExecuteReturnOrTypeCommand(CommandArgs args, Action nextHandler, CancellationToken cancellationToken)
 at
Microsoft.CodeAnalysis.Editor.Implementation.Formatting.FormatCommandHandler.ExecuteCommand(TypeCharCommandArgs args, Action nextHandler)
 at
Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.<>c__DisplayClass6_1`1.<ExecuteHandlers>b__1()
 at
Microsoft.CodeAnalysis.Editor.Implementation.InlineRename.RenameCommandHandler.HandlePossibleTypingCommand(CommandArgs args, Action nextHandler, Action`1 actionIfInsideActiveSpan)
 at
Microsoft.CodeAnalysis.Editor.Implementation.InlineRename.RenameCommandHandler.ExecuteCommand(TypeCharCommandArgs args, Action nextHandler)
 at
Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.<>c__DisplayClass6_1`1.<ExecuteHandlers>b__1()
 at
Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.SignatureHelp.Controller.Microsoft.CodeAnalysis.Editor.ICommandHandler<Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs>.ExecuteCommand(TypeCharCommandArgs args, Action nextHandler)
 at
Microsoft.CodeAnalysis.Editor.CommandHandlers.SignatureHelpCommandHandler.ExecuteCommandWorker[TCommandArgs](TCommandArgs args, Action nextHandler)
 at
Microsoft.CodeAnalysis.Editor.CommandHandlers.SignatureHelpCommandHandler.Microsoft.CodeAnalysis.Editor.ICommandHandler<Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs>.ExecuteCommand(TypeCharCommandArgs args, Action nextHandler)
 at
Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.ExecuteHandlers[T](IList`1 commandHandlers, T args, Action lastHandler)
 at
Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.Microsoft.CodeAnalysis.Editor.ICommandHandlerService.Execute[T](IContentType contentType, T args, Action lastHandler)
 at
Microsoft.VisualStudio.LanguageServices.Implementation.AbstractOleCommandTarget.ExecuteTypeCharacter(IntPtr pvaIn, ITextBuffer subjectBuffer, IContentType contentType, Action executeNextCommandTarget)
 at
Microsoft.VisualStudio.LanguageServices.Implementation.AbstractOleCommandTarget.ExecuteVisualStudio2000(Guid& pguidCmdGroup, UInt32 commandId, UInt32 executeInformation, IntPtr pvaIn, IntPtr pvaOut, ITextBuffer subjectBuffer, IContentType contentType)
 at
Microsoft.VisualStudio.LanguageServices.Implementation.AbstractOleCommandTarget.Exec(Guid& pguidCmdGroup, UInt32 commandId, UInt32 executeInformation, IntPtr pvaIn, IntPtr pvaOut)
 at
Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.SendCommand(Guid cmdGroup, UInt32 cmdID, Object inParam)
 at
Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.TextInput(TextCompositionEventArgs args)
 at
Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<>c.<DispatchTextInputEvents>b__6_0(KeyProcessor p, TextCompositionEventArgs args)
 at
Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<>c__DisplayClass10_1`1.<Dispatch>b__0()
 at
Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)
--- End of stack trace from previous location where exception was thrown ---
 at
Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)</description>
</entry>Relevant line:
Microsoft.VisualStudio.FSharp.Editor.FSharpCompletionProvider.ShouldTriggerCompletionAux(SourceText sourceText, Int32 caretPosition, CompletionTriggerKind trigger, FSharpFunc`2 getInfo)
 at Microsoft.VisualStudio.FSharp.Editor.FSharpCompletionProvider.ShouldTriggerCompletion(SourceText sourceText, Int32 caretPosition, CompletionTrigger trigger, OptionSet _arg1)

x000D --> 13
x000A -->10
After making the dialog goes away, everything works. I can't reproduce this easily, but I have seen it twice today.