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
I am experiencing frequent and consistent crashes of the PowerShell extension whenever a large amount of text (that includes the last line of a script) is removed, either via deletion or via the text being pasted over. This is happening consistently and always produces the same error in the EditorServices log (see the error below or via the attached file).
I assume this is related to something within the extension parsing the script text and being unhappy with too much being removed at one time (possibly PSScriptAnalyzer?), though the error message doesn't make it clear what action is being performed when the extension crashes.
The EditorServices log shows the following error message:
2018-09-11 13:03:06.644 [ERROR] C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\ProtocolEndpoint.cs: In method 'OnListenTaskCompleted', line 391:
ProtocolEndpoint message loop terminated due to unhandled exception:
System.AggregateException: One or more errors occurred. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
(Call stack removed from this quote; refer to the attached file for the call stack)
The text was updated successfully, but these errors were encountered:
gabrieljtaylor
changed the title
Editor Services Crashes when Replacing All Text in a Script via Copy/Paste
Editor Services Crashes when Large Amount of Text is Removed
Sep 11, 2018
Issue Description
I am experiencing frequent and consistent crashes of the PowerShell extension whenever a large amount of text (that includes the last line of a script) is removed, either via deletion or via the text being pasted over. This is happening consistently and always produces the same error in the EditorServices log (see the error below or via the attached file).
I assume this is related to something within the extension parsing the script text and being unhappy with too much being removed at one time (possibly PSScriptAnalyzer?), though the error message doesn't make it clear what action is being performed when the extension crashes.
The EditorServices log shows the following error message:
(Call stack removed from this quote; refer to the attached file for the call stack)
Attached Logs
PowerShellExtensionCrashLogs.zip
Environment Information
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: