-
Notifications
You must be signed in to change notification settings - Fork 522
Closed
Labels
Description
Issue Description
I am experiencing a problem with...crashing of extension.
Basically what I did is have an empty .ps1 file. Typed Get-Process to reproduce #2274 ticket, waited. Nothing showed up, pressed enter, and it showed @ as mentioned in #2274 and finally crashed a few seconds later.
I'm opening it as a separate issue as it may be worth try/catch or something. Feel free to close one if it's the same thing.
Relevant log.
2019-11-04 10:47:28.903 +01:00 [WRN] Runtime exception occurred while executing command:
System.Management.Automation.ParseException: At line:1 char:1
+ @
+ ~
Unrecognized token in source text.
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke[T](IEnumerable input, PSInvocationSettings settings)
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.PowerShell.EditorServices.Services.PowerShellContextService.<ExecuteCommandAsync>d__84`1.MoveNext()
2019-11-04 10:47:28.974 +01:00 [VRB] StartReadLoop called while read loop is already running
2019-11-04 10:47:28.974 +01:00 [VRB] Attempting to execute command(s):
Attached Logs
Follow the instructions in the README about
capturing and sending logs.
Environment Information
Visual Studio Code
| Name | Version |
|---|---|
| Operating System | Windows_NT x64 10.0.17763 |
| VSCode | 1.39.2 |
| PowerShell Extension Version | 2019.11.0 |
PowerShell Information
| Name | Value |
|---|---|
| PSVersion | 5.1.17763.771 |
| PSEdition | Desktop |
| PSCompatibleVersions | 1.0 2.0 3.0 4.0 5.0 5.1.17763.771 |
| BuildVersion | 10.0.17763.771 |
| CLRVersion | 4.0.30319.42000 |
| WSManStackVersion | 3.0 |
| PSRemotingProtocolVersion | 2.3 |
| SerializationVersion | 1.1.0.1 |
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
| Extension | Author | Version |
|---|---|---|
| beautify | HookyQR | 1.5.0 |
| gitlens | eamodio | 10.1.1 |
| material-icon-theme | PKief | 3.9.1 |
| open-in-browser | techer | 2.0.0 |
| powershell-preview | ms-vscode | 2019.11.0 |
| theme-monokai-pro-vscode | monokai | 1.1.14 |
| vscode-wakatime | WakaTime | 2.2.1 |