Skip to content

PowerShell extension for VSCode Freezing after running a .ps1 file #1645

Closed
@msurasky

Description

@msurasky

System Details

  • Operating system name and version
    Windows 10 Version 1709 (OS Build 16299.755)

  • VS Code version:
    code - v
    1.29.1
    bc24f98b5f70467bc689abf41cc5550ca637088e
    x64

  • PowerShell extension version
    Here are all my extensions together with the versions (where you can see PowerShell extension is at 1.10.1)
    adammaras.overtype@0.2.0
    alefragnani.Bookmarks@10.0.0
    jpogran.puppet-vscode@0.14.0
    ms-vscode.PowerShell@1.10.1
    ms-vsts.team@1.144.1

  • Output from $PSVersionTable
    Here is my $PSVersionTable
    PSVersion 5.1.16299.666
    PSEdition Desktop
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    BuildVersion 10.0.16299.666
    CLRVersion 4.0.30319.42000
    WSManStackVersion 3.0
    PSRemotingProtocolVersion 2.3
    SerializationVersion 1.1.0.1

Issue Description

I am experiencing a problem with the extension. When I load my .ps1 file and hit Debug --> Start Debugging or Debug --> Start without Debugging I sometimes see that VSCode "freezes". The state at which is freezes is when you have the little window on top with the Stop/Pause/Play buttons for the debugger and the little animation of a line moving on the top/left corner of the IDE

2018_2019_tasks_not_found

After a while, I usually get the message "Debug adapter process has terminated unexpectedly (read error)"

10-12-2018 10-27-58 am

I only manage to run the script by killing the terminal and starting again. Even if I do that, I noticed that more often than not, each other execution (#3 #5 #7, etc) freezes (this is, the "kill terminal" trick only works for one execution and the one following that freezes again).

Expected Behaviour

I would have expected the script to run to completion (there is nothing wrong with the script perse. I have executed it a zillion times in PowerShell IDE)

Actual Behaviour

As mentioned, the VSCode IDE PowerShell extension freezes

Attached Logs

1544458445-3a452c52-d1d8-45d0-aa8e-8af335ab7b631544457258116.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions