vscode-powershell icon indicating copy to clipboard operation
vscode-powershell copied to clipboard

F5 stops working after being idle for hours

Open PrzemyslawKlys opened this issue 3 years ago • 13 comments

Prerequisites

  • [X] I have written a descriptive issue title.
  • [X] I have searched all issues to ensure it has not already been reported.
  • [X] I have read the troubleshooting guide.
  • [X] I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • [X] I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • [X] If this is a security issue, I have read the security issue reporting guidance.

Summary

I was using VSCode happily and left it idling overnight. When I came back in the morning pressing F5 no longer worked. It shows "debugging" started but nothing actually happens.

1653152189-b24c1707-c9d4-4dd2-bd79-c3b812fa2ef31653152188112.zip

After restarting the session - things work again. I've seen it before in earlier previews.

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.3.0-preview.3
PSEdition                      Core
GitCommitId                    7.3.0-preview.3
OS                             Microsoft Windows 10.0.22000
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visual Studio Code Version

1.67.2                                                                                                                                                                                                                                                                                                        
c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5                                                                                                                                                                                                                                                                      
x64

Extension Version

[email protected]
[email protected]                                                                                                                                                                                                                                                                         
[email protected]                                                                                                                                                                                                                                                                          
[email protected]

Steps to Reproduce

Hard to say if it's just being idle or something else is in play.

Visuals

No response

Logs

No response

PrzemyslawKlys avatar May 22 '22 05:05 PrzemyslawKlys

having the same issue do not need to wait for hours to have it hanging. allready had this issue in previous version had to rollback to 2021.10.2

SwissPowershell avatar May 24 '22 09:05 SwissPowershell

Thanks for the report @PrzemyslawKlys , is just F5 not working or is the extension not working at all?

SydneyhSmith avatar May 24 '22 17:05 SydneyhSmith

Haven't noticed really. Probably yes. If it happens again I will report. For me it happens very rarely and I can't really complain.

PrzemyslawKlys avatar May 24 '22 17:05 PrzemyslawKlys

Haven't noticed really. Probably yes. If it happens again I will report. For me it happens very rarely and I can't really complain.

I have two machine and one is working perfectly with no issue I suspect a module to be the problem root cause will remove them one by one until I find the suspect

SwissPowershell avatar May 24 '22 18:05 SwissPowershell

Similar issue when running through code by using F5. It goes fine for a while and then it stops... hangs... pressing another time F11 or F10 will not move the cursor or show the prompt again. It's like the prompt is performing something but the yellow line indicating where we are in the script isn't there anymore.

Only solution is to kill the PowerShell integrated console and have it start fresh. This happens with

  • v2022.5.5-preview
Version: 1.67.2 (system setup)
Commit: c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
Date: 2022-05-17T18:15:52.058Z
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Windows_NT x64 10.0.14393

DarkLite1 avatar Jun 03 '22 13:06 DarkLite1

@DarkLite1 Have you seen it repro with v2022.5.1? And how long does is "a while"?

andyleejordan avatar Jun 03 '22 17:06 andyleejordan

Usually after 2 to 3 executions with F5 it fails. So it's not needed to wait for hours. Also annoying is that breakpoints are not respected when not launching with F5 but from the console. But that's another issue.

It's hard to consistently reproduce this behavior. Haven't tried with v2022.5.1, a bit lack of time at the moment.

DarkLite1 avatar Jun 07 '22 06:06 DarkLite1

Have successfully tested with 2022.5.1 and the issue is not present

SwissPowershell avatar Jun 07 '22 07:06 SwissPowershell

Between 51. and 5.5 this PR was the most closely related to debugging: https://github.com/PowerShell/PowerShellEditorServices/pull/1803/files 🤔

andyleejordan avatar Jun 08 '22 16:06 andyleejordan

I actually started having this issue more and more :-(

PrzemyslawKlys avatar Jun 08 '22 16:06 PrzemyslawKlys

Does it also not repro in 5.1 for you @PrzemyslawKlys?

andyleejordan avatar Jun 08 '22 16:06 andyleejordan

I haven't noticed, but indeed I changed lately to 7.3. I'll take a look with 5.1.

PrzemyslawKlys avatar Jun 08 '22 16:06 PrzemyslawKlys

Sooo sorry, I mean v2022.5.1 of the extension, not Windows PowerShell 5.1. Please keep using PowerShell Core (now 7.4 I think!)

andyleejordan avatar Jun 08 '22 19:06 andyleejordan

Hey @PrzemyslawKlys, how is this issue with the latest extension version?

andyleejordan avatar Dec 07 '22 18:12 andyleejordan

Havent had any issues lately so I cant complain 😊

PrzemyslawKlys avatar Dec 07 '22 19:12 PrzemyslawKlys

Great!

andyleejordan avatar Dec 07 '22 20:12 andyleejordan

This issue has been marked as fixed. It has been automatically closed for housekeeping purposes.

ghost avatar Dec 07 '22 22:12 ghost