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

New Text File -> Select a language -> F#, Ionide writes error to output #1906

Closed
Happypig375 opened this issue Aug 9, 2023 · 1 comment · Fixed by ionide/FsAutoComplete#1152

Comments

@Happypig375
Copy link
Contributor

Describe the bug

Ionide cannot handle the scenario of New Text File -> Select a language -> F#.

Steps to reproduce

  1. File tab -> New Text File -> Select a language -> F#
  2. This error in output view -> F#
[02:15:44.548 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] checkUnusedOpens failed
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FSharp.Compiler.EditorServices.UnusedOpens.filterSymbolUses@118.Invoke(FSharpSymbolUse su) in D:\a\_work\1\s\src\Compiler\Service\ServiceAnalysis.fs:line 148
   at Microsoft.FSharp.Collections.Internal.IEnumerator.next@277[T](FSharpFunc`2 f, IEnumerator`1 e, FSharpRef`1 started, Unit unitVar0) in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 281
   at Microsoft.FSharp.Collections.Internal.IEnumerator.filter@267.System.Collections.IEnumerator.MoveNext() in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 283
   at Microsoft.FSharp.Collections.SeqModule.ToArray[T](IEnumerable`1 source) in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 1037
   at Microsoft.FSharp.Collections.ArrayModule.OfSeq[T](IEnumerable`1 source) in D:\a\_work\1\s\src\FSharp.Core\array.fs:line 1543
   at FSharp.Compiler.EditorServices.UnusedOpens.getUnusedOpens@299-1.Invoke(CancellationToken ct) in D:\a\_work\1\s\src\Compiler\Service\ServiceAnalysis.fs:line 300
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, b result1, FSharpFunc`2 userCode) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 528
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 148
  1. Write let x = 1
  2. Observe no autocompletion services
Observe these errors in output view -> F#
[Error - 2:17:37 AM] Request textDocument/completion failed.
  Message: No line in c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx at position (1,1)
  Code: -32603 
[02:17:37.794 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 0, "$type": "Position"}, "End": {"Line": 0, "Character": 0, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "l", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 2 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 0, "$type": "Pos"}, "End": {"Line": 1, "Column": 0, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:37.858 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] checkUnusedOpens failed
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FSharp.Compiler.EditorServices.UnusedOpens.filterSymbolUses@118.Invoke(FSharpSymbolUse su) in D:\a\_work\1\s\src\Compiler\Service\ServiceAnalysis.fs:line 148
   at Microsoft.FSharp.Collections.Internal.IEnumerator.next@277[T](FSharpFunc`2 f, IEnumerator`1 e, FSharpRef`1 started, Unit unitVar0) in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 281
   at Microsoft.FSharp.Collections.Internal.IEnumerator.filter@267.System.Collections.IEnumerator.MoveNext() in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 283
   at Microsoft.FSharp.Collections.SeqModule.ToArray[T](IEnumerable`1 source) in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 1037
   at Microsoft.FSharp.Collections.ArrayModule.OfSeq[T](IEnumerable`1 source) in D:\a\_work\1\s\src\FSharp.Core\array.fs:line 1543
   at FSharp.Compiler.EditorServices.UnusedOpens.getUnusedOpens@299-1.Invoke(CancellationToken ct) in D:\a\_work\1\s\src\Compiler\Service\ServiceAnalysis.fs:line 300
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, b result1, FSharpFunc`2 userCode) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 528
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 148
[02:17:37.904 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 0, "$type": "Position"}, "End": {"Line": 0, "Character": 0, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "l", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 2 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 0, "$type": "Pos"}, "End": {"Line": 1, "Column": 0, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:37.905 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 1, "$type": "Position"}, "End": {"Line": 0, "Character": 1, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "e", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 3 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 1, "$type": "Pos"}, "End": {"Line": 1, "Column": 1, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:37.961 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] checkUnusedOpens failed
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FSharp.Compiler.EditorServices.UnusedOpens.filterSymbolUses@118.Invoke(FSharpSymbolUse su) in D:\a\_work\1\s\src\Compiler\Service\ServiceAnalysis.fs:line 148
   at Microsoft.FSharp.Collections.Internal.IEnumerator.next@277[T](FSharpFunc`2 f, IEnumerator`1 e, FSharpRef`1 started, Unit unitVar0) in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 281
   at Microsoft.FSharp.Collections.Internal.IEnumerator.filter@267.System.Collections.IEnumerator.MoveNext() in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 283
   at Microsoft.FSharp.Collections.SeqModule.ToArray[T](IEnumerable`1 source) in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 1037
   at Microsoft.FSharp.Collections.ArrayModule.OfSeq[T](IEnumerable`1 source) in D:\a\_work\1\s\src\FSharp.Core\array.fs:line 1543
   at FSharp.Compiler.EditorServices.UnusedOpens.getUnusedOpens@299-1.Invoke(CancellationToken ct) in D:\a\_work\1\s\src\Compiler\Service\ServiceAnalysis.fs:line 300
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, b result1, FSharpFunc`2 userCode) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 528
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 148
[02:17:38.005 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 0, "$type": "Position"}, "End": {"Line": 0, "Character": 0, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "l", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 2 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 0, "$type": "Pos"}, "End": {"Line": 1, "Column": 0, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.005 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 1, "$type": "Position"}, "End": {"Line": 0, "Character": 1, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "e", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 3 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 1, "$type": "Pos"}, "End": {"Line": 1, "Column": 1, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.005 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 2, "$type": "Position"}, "End": {"Line": 0, "Character": 2, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "t", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 4 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 2, "$type": "Pos"}, "End": {"Line": 1, "Column": 2, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.054 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] checkUnusedOpens failed
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FSharp.Compiler.EditorServices.UnusedOpens.filterSymbolUses@118.Invoke(FSharpSymbolUse su) in D:\a\_work\1\s\src\Compiler\Service\ServiceAnalysis.fs:line 148
   at Microsoft.FSharp.Collections.Internal.IEnumerator.next@277[T](FSharpFunc`2 f, IEnumerator`1 e, FSharpRef`1 started, Unit unitVar0) in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 281
   at Microsoft.FSharp.Collections.Internal.IEnumerator.filter@267.System.Collections.IEnumerator.MoveNext() in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 283
   at Microsoft.FSharp.Collections.SeqModule.ToArray[T](IEnumerable`1 source) in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 1037
   at Microsoft.FSharp.Collections.ArrayModule.OfSeq[T](IEnumerable`1 source) in D:\a\_work\1\s\src\FSharp.Core\array.fs:line 1543
   at FSharp.Compiler.EditorServices.UnusedOpens.getUnusedOpens@299-1.Invoke(CancellationToken ct) in D:\a\_work\1\s\src\Compiler\Service\ServiceAnalysis.fs:line 300
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, b result1, FSharpFunc`2 userCode) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 528
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 148
[02:17:38.101 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 0, "$type": "Position"}, "End": {"Line": 0, "Character": 0, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "l", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 2 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 0, "$type": "Pos"}, "End": {"Line": 1, "Column": 0, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.102 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 1, "$type": "Position"}, "End": {"Line": 0, "Character": 1, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "e", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 3 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 1, "$type": "Pos"}, "End": {"Line": 1, "Column": 1, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.103 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 2, "$type": "Position"}, "End": {"Line": 0, "Character": 2, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "t", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 4 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 2, "$type": "Pos"}, "End": {"Line": 1, "Column": 2, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.104 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 3, "$type": "Position"}, "End": {"Line": 0, "Character": 3, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": " ", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 5 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 3, "$type": "Pos"}, "End": {"Line": 1, "Column": 3, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.147 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] checkUnusedOpens failed
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FSharp.Compiler.EditorServices.UnusedOpens.filterSymbolUses@118.Invoke(FSharpSymbolUse su) in D:\a\_work\1\s\src\Compiler\Service\ServiceAnalysis.fs:line 148
   at Microsoft.FSharp.Collections.Internal.IEnumerator.next@277[T](FSharpFunc`2 f, IEnumerator`1 e, FSharpRef`1 started, Unit unitVar0) in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 281
   at Microsoft.FSharp.Collections.Internal.IEnumerator.filter@267.System.Collections.IEnumerator.MoveNext() in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 283
   at Microsoft.FSharp.Collections.SeqModule.ToArray[T](IEnumerable`1 source) in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 1037
   at Microsoft.FSharp.Collections.ArrayModule.OfSeq[T](IEnumerable`1 source) in D:\a\_work\1\s\src\FSharp.Core\array.fs:line 1543
   at FSharp.Compiler.EditorServices.UnusedOpens.getUnusedOpens@299-1.Invoke(CancellationToken ct) in D:\a\_work\1\s\src\Compiler\Service\ServiceAnalysis.fs:line 300
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, b result1, FSharpFunc`2 userCode) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 528
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 148
[Error - 2:17:38 AM] Request textDocument/signatureHelp failed.
  Message: Couldn't find previous non-whitespace char
  Code: -32603 
[02:17:38.293 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 0, "$type": "Position"}, "End": {"Line": 0, "Character": 0, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "l", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 2 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 0, "$type": "Pos"}, "End": {"Line": 1, "Column": 0, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.294 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 1, "$type": "Position"}, "End": {"Line": 0, "Character": 1, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "e", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 3 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 1, "$type": "Pos"}, "End": {"Line": 1, "Column": 1, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.294 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 2, "$type": "Position"}, "End": {"Line": 0, "Character": 2, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "t", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 4 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 2, "$type": "Pos"}, "End": {"Line": 1, "Column": 2, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.295 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 3, "$type": "Position"}, "End": {"Line": 0, "Character": 3, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": " ", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 5 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 3, "$type": "Pos"}, "End": {"Line": 1, "Column": 3, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.295 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 4, "$type": "Position"}, "End": {"Line": 0, "Character": 4, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "x", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 6 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 4, "$type": "Pos"}, "End": {"Line": 1, "Column": 4, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[Error - 2:17:38 AM] Request textDocument/completion failed.
  Message: No line in c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx at position (1,5)
  Code: -32603 
[02:17:38.344 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] checkUnusedOpens failed
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FSharp.Compiler.EditorServices.UnusedOpens.filterSymbolUses@118.Invoke(FSharpSymbolUse su) in D:\a\_work\1\s\src\Compiler\Service\ServiceAnalysis.fs:line 148
   at Microsoft.FSharp.Collections.Internal.IEnumerator.next@277[T](FSharpFunc`2 f, IEnumerator`1 e, FSharpRef`1 started, Unit unitVar0) in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 281
   at Microsoft.FSharp.Collections.Internal.IEnumerator.filter@267.System.Collections.IEnumerator.MoveNext() in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 283
   at Microsoft.FSharp.Collections.SeqModule.ToArray[T](IEnumerable`1 source) in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 1037
   at Microsoft.FSharp.Collections.ArrayModule.OfSeq[T](IEnumerable`1 source) in D:\a\_work\1\s\src\FSharp.Core\array.fs:line 1543
   at FSharp.Compiler.EditorServices.UnusedOpens.getUnusedOpens@299-1.Invoke(CancellationToken ct) in D:\a\_work\1\s\src\Compiler\Service\ServiceAnalysis.fs:line 300
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, b result1, FSharpFunc`2 userCode) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 528
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 148
[02:17:38.438 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 0, "$type": "Position"}, "End": {"Line": 0, "Character": 0, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "l", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 2 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 0, "$type": "Pos"}, "End": {"Line": 1, "Column": 0, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.438 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 1, "$type": "Position"}, "End": {"Line": 0, "Character": 1, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "e", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 3 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 1, "$type": "Pos"}, "End": {"Line": 1, "Column": 1, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.438 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 2, "$type": "Position"}, "End": {"Line": 0, "Character": 2, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "t", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 4 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 2, "$type": "Pos"}, "End": {"Line": 1, "Column": 2, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.439 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 3, "$type": "Position"}, "End": {"Line": 0, "Character": 3, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": " ", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 5 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 3, "$type": "Pos"}, "End": {"Line": 1, "Column": 3, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.439 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 4, "$type": "Position"}, "End": {"Line": 0, "Character": 4, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "x", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 6 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 4, "$type": "Pos"}, "End": {"Line": 1, "Column": 4, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.440 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 5, "$type": "Position"}, "End": {"Line": 0, "Character": 5, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": " ", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 7 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 5, "$type": "Pos"}, "End": {"Line": 1, "Column": 5, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.483 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] checkUnusedOpens failed
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FSharp.Compiler.EditorServices.UnusedOpens.filterSymbolUses@118.Invoke(FSharpSymbolUse su) in D:\a\_work\1\s\src\Compiler\Service\ServiceAnalysis.fs:line 148
   at Microsoft.FSharp.Collections.Internal.IEnumerator.next@277[T](FSharpFunc`2 f, IEnumerator`1 e, FSharpRef`1 started, Unit unitVar0) in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 281
   at Microsoft.FSharp.Collections.Internal.IEnumerator.filter@267.System.Collections.IEnumerator.MoveNext() in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 283
   at Microsoft.FSharp.Collections.SeqModule.ToArray[T](IEnumerable`1 source) in D:\a\_work\1\s\src\FSharp.Core\seq.fs:line 1037
   at Microsoft.FSharp.Collections.ArrayModule.OfSeq[T](IEnumerable`1 source) in D:\a\_work\1\s\src\FSharp.Core\array.fs:line 1543
   at FSharp.Compiler.EditorServices.UnusedOpens.getUnusedOpens@299-1.Invoke(CancellationToken ct) in D:\a\_work\1\s\src\Compiler\Service\ServiceAnalysis.fs:line 300
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, b result1, FSharpFunc`2 userCode) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 528
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 148
[Error - 2:17:38 AM] Request textDocument/signatureHelp failed.
  Message: Couldn't find previous non-whitespace char
  Code: -32603 
[02:17:38.584 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 0, "$type": "Position"}, "End": {"Line": 0, "Character": 0, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "l", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 2 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 0, "$type": "Pos"}, "End": {"Line": 1, "Column": 0, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.585 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 1, "$type": "Position"}, "End": {"Line": 0, "Character": 1, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "e", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 3 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 1, "$type": "Pos"}, "End": {"Line": 1, "Column": 1, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.585 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 2, "$type": "Position"}, "End": {"Line": 0, "Character": 2, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "t", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 4 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 2, "$type": "Pos"}, "End": {"Line": 1, "Column": 2, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.585 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 3, "$type": "Position"}, "End": {"Line": 0, "Character": 3, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": " ", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 5 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 3, "$type": "Pos"}, "End": {"Line": 1, "Column": 3, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.585 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 4, "$type": "Position"}, "End": {"Line": 0, "Character": 4, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": "x", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 6 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 4, "$type": "Pos"}, "End": {"Line": 1, "Column": 4, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
[02:17:38.586 ERR] [FsAutoComplete.Lsp.AdaptiveFSharpLspServer] Error applying {"Range": {"Value": {"Start": {"Line": 0, "Character": 5, "$type": "Position"}, "End": {"Line": 0, "Character": 5, "$type": "Position"}, "$type": "Range"}, "$type": "Some"}, "RangeLength": {"Value": 0, "$type": "Some"}, "Text": " ", "$type": "TextDocumentContentChangeEvent"} to document c:\Users\hadri\AppData\Local\Programs\Microsoft VS Code\Untitled-2.fsx for version 7 - {"File": "c:\\Users\\hadri\\AppData\\Local\\Programs\\Microsoft VS Code\\Untitled-2.fsx", "Start": {"Line": 1, "Column": 5, "$type": "Pos"}, "End": {"Line": 1, "Column": 5, "$type": "Pos"}, "$type": "Rng"}
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at FsAutoComplete.NamedText.FSharp.Compiler.Text.ISourceText.GetLineString(Int32 lineIndex) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 411
   at FsAutoComplete.NamedText.GetText(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 220
   at FsAutoComplete.NamedText.get_Item(Range m) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 359
   at FsAutoComplete.NamedText.ModifyText(Range m, String text) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 351
   at FsAutoComplete.NamedText.FsAutoComplete.IFSACSourceText.ModifyText(Range r, String t) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete.Core/FileSystem.fs:line 458
   at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.file@926.Invoke(VolatileFile text, Tuple`3 tupledArg) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs:line 932
  1. Close Visual Studio Code
  2. Reopen Visual Studio Code
  3. Autocompletion loads successfully

Link to sample reproduction

N/A

Expected behaviour

Autocompletion works without having to close and reopen Visual Studio Code.

Screenshots

image
image
after reopen
image

Machine info

  • OS: Windows
  • .NET SDK version: 7.0.302
  • Ionide version: 7.8.5

Additional context

N/A

@TheAngryByrd
Copy link
Member

TheAngryByrd pushed a commit to ionide/FsAutoComplete that referenced this issue Sep 1, 2023
* Fix #1906

* You gotta be trolling me

* never seen fantomas used this way

* More tests

* Oops

* clarify error

* fix grammar
nojaf pushed a commit to nojaf/FsAutoComplete that referenced this issue Nov 3, 2023
* Fix #1906

* You gotta be trolling me

* never seen fantomas used this way

* More tests

* Oops

* clarify error

* fix grammar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants