Vscode-powershell: Timed out waiting for the PowerShell extension to start when Start debugging before extension starts

Created on 11 Dec 2019  路  9Comments  路  Source: PowerShell/vscode-powershell

System Details

  • Operating System
    Windows 10
  • VS Code version
    1.40.2
  • PowerShell extension version
    2019.11.0
  • Output from $PSVersionTable
    7.0.0-preview.6
    5.1.18362.145

    Issue Description

I am experiencing a problem with running a PowerShell debug configuration.
"PowerShell: Launch a Script"
If I do not open a ps1 file first the debugger will time out waiting for PowerShell to start.
Error: Timed out waiting for the PowerShell extension to start.

Repro Instructions

Open VSCode
Open a Folder with a launch.json and a PowerShell Script
Note: DO NOT open any POWERSHELL scripts
Open the debugger Control + Shift + D
Launch a configuration PowerShell Launch a script.

Expected Behaviour

The Launch should Run

Actual Behaviour

Error: Timed out waiting for the PowerShell extension to start.

Work around

Open a PowerShell script in the editor
Extension starts PowerShell
Run the debug configuration.
It will now work.

Area-Debugging Issue-Bug

All 9 comments

VSCode extensions:

bencoleman.[email protected]
bierner.[email protected]
bpruitt-goddard.[email protected]
brunnerh.[email protected]
christian-kohler.[email protected]
CoenraadS.[email protected]
Compulim.[email protected]
DavidAnson.[email protected]
dbaeumer.[email protected]
donjayamanne.[email protected]
DotJoshJohnson.[email protected]
dracula-theme.[email protected]
eamodio.[email protected]
eamodio.[email protected]
eg2.[email protected]
fabianlauer.[email protected]
faustinoaq.[email protected]
fcrespo82.[email protected]
GlenBuktenica.[email protected]
humao.[email protected]
mechatroner.[email protected]
mhutchie.[email protected]
mohsen1.[email protected]
ms-mssql.[email protected]
ms-python.[email protected]
ms-vscode-remote.[email protected]
ms-vscode.[email protected]
ms-vscode.[email protected]
ms-vscode.[email protected]
ms-vscode.[email protected]
ms-vsts.[email protected]
msjsdiag.[email protected]
piotrpalarz.[email protected]
Shan.[email protected]
sidneys1.[email protected]
slevesque.[email protected]
sohamkamani.[email protected]
streetsidesoftware.[email protected]
vstirbu.[email protected]
waderyan.[email protected]
zeithaste.[email protected]

PSES version:

PowerShell version:

Name                           Value
----                           -----
PSVersion                      7.0.0-preview.6
PSEdition                      Core
GitCommitId                    7.0.0-preview.6
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0鈥
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

$psEditor.EditorServicesVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
1       13      1       0

vscode-powershell.log

11/12/2019 1:26:18 pm [NORMAL] - powershell.exe terminated or terminal UI was closed

DebugAdapter.log

Session file path: c:\Users\glen\.vscode\extensions\ms-vscode.powershell-2019.11.0\sessions\PSES-VSCode-13036-Debug, pid: 2348 
Waiting for session file, tries remaining: 30...
Waiting for session file, tries remaining: 29...
Waiting for session file, tries remaining: 28...
Waiting for session file, tries remaining: 27...
Waiting for session file, tries remaining: 26...
Waiting for session file, tries remaining: 25...
Waiting for session file, tries remaining: 24...
Waiting for session file, tries remaining: 23...
Waiting for session file, tries remaining: 22...
Waiting for session file, tries remaining: 21...
Waiting for session file, tries remaining: 20...
Waiting for session file, tries remaining: 19...
Waiting for session file, tries remaining: 18...
Waiting for session file, tries remaining: 17...
Waiting for session file, tries remaining: 16...
Waiting for session file, tries remaining: 15...
Waiting for session file, tries remaining: 14...
Waiting for session file, tries remaining: 13...
Waiting for session file, tries remaining: 12...
Waiting for session file, tries remaining: 11...
Waiting for session file, tries remaining: 10...
Waiting for session file, tries remaining: 9...
Waiting for session file, tries remaining: 8...
Waiting for session file, tries remaining: 7...
Waiting for session file, tries remaining: 6...
Waiting for session file, tries remaining: 5...
Waiting for session file, tries remaining: 4...
Waiting for session file, tries remaining: 3...
Waiting for session file, tries remaining: 2...
Waiting for session file, tries remaining: 1...
Waiting for session file, tries remaining: 0...
Timed out waiting for session file!

@gbuktenica thanks for opening this issue, we recently published an update to our Preview extension that may solve this issue, please let us know if you are able to try it out..thanks!

Hi @SydneyhSmith I have just tried with the Preview Extension and I get the same behaviour.
I see you have tagged this issue with "Needs-Repro-Info". What more information is required?

@gbuktenica thanks for opening providing the steps, I am able to reproduce this...we are still investigating how to best resolve this issue--thanks!

I have the same problem with v2020.4.0

@virovets64 yes I still have the problem with

  • Operating System
    Windows 10
  • VS Code version
    1.44.2

  • PowerShell extension version
    2020.4.0

  • Output from $PSVersionTable

PSVersion 7.0.0
PSEdition Core

I have a partial fix to this... pressing play with start the extension now, but it'll say you need to wait for it to finish starting.

At least it's two clicks of the same button, rather than opening a PS file.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

keposet picture keposet  路  3Comments

timoline picture timoline  路  3Comments

guidooliveira picture guidooliveira  路  3Comments

AWahlqvist picture AWahlqvist  路  3Comments

nathan-alden-hp picture nathan-alden-hp  路  3Comments