Skip to content

VSCODE- Insiders: Timed out waiting for the PowerShell extension to start #1046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
iricigor opened this issue Oct 6, 2017 · 21 comments · Fixed by #1062
Closed

VSCODE- Insiders: Timed out waiting for the PowerShell extension to start #1046

iricigor opened this issue Oct 6, 2017 · 21 comments · Fixed by #1062

Comments

@iricigor
Copy link

iricigor commented Oct 6, 2017

System Details

  • Operating system name and version: Windows 10
  • VS Code version: 1.18.0 Insiders (commit date 2017-10-06T05:26:16.770Z)
  • PowerShell extension version: 1.4.3
  • Output from $PSVersionTable: 5.1.15063.632

Issue Description

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

This seems to be specific for latest 1.18 insiders build. All works normally on 1.17 public version.
I tried multiple computers and its the same behaviour.
PowerShell extension is timing out when pressing F5, or trying to start any script.

image

Steps to reproduce

  • On clean Windows 10 machine install VS Code Insiders 1.18.0.
  • Install PowerShell extension v.1.4.3
  • Wirite simple script (something as Write-Host 1)
  • Press F5

Expected behaviour is to diplay 1 in console. But, nothing actually happens. After some time, time out error will appear.

Attached Logs

logs.zip

@rkeithhill
Copy link
Contributor

If you set script analysis to false (in your settings):

"powershell.scriptAnalysis.enable": false,

and reload VSCode Insiders, does it still timeout?

@iricigor
Copy link
Author

iricigor commented Oct 6, 2017

Just tried it, and yes, still the same behavior.

@kborowinski
Copy link

I have the same behavior in VS Code 1.18.0. The PowerShell extension does not start.

@iricigor
Copy link
Author

Build from 10-10-2017 has the same issue.

@jamestupper
Copy link

I'm seeing the same issue.

  • Visual Studio Code version: 1.18.0-insider (Date 2017-10-13T08:55:13.465Z)
  • PowerShell extension version: v1.4.3

@DarkLite1
Copy link

DarkLite1 commented Oct 16, 2017

Insiders build from 16/10/2017 with extension 1.4.3 has the same issue.

Settings on user level:

{
    "editor.formatOnType": true,
    "editor.formatOnPaste": true,
    "editor.wordWrap": "on",
    "terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
    "workbench.editor.enablePreview":false,
    "window.zoomLevel": 0,
    "workbench.colorTheme": "Default High Contrast"
    // "powershell.developer.editorServicesLogLevel": "Verbose"
}

Launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "PowerShell",
            "request": "launch",
            "name": "PowerShell Launch Current File",
            "script": "${file}",
            "args": [],
            "cwd": "${file}"
        },
        {
            "type": "PowerShell",
            "request": "launch",
            "name": "PowerShell Launch Current File in Temporary Console",
            "script": "${file}",
            "args": [],
            "cwd": "${file}",
            "createTemporaryIntegratedConsole": true
        },
        {
            "type": "PowerShell",
            "request": "launch",
            "name": "PowerShell Launch Current File w/Args Prompt",
            "script": "${file}",
            "args": [
                "${command:SpecifyScriptArgs}"
            ],
            "cwd": "${file}"
        },
        {
            "type": "PowerShell",
            "request": "attach",
            "name": "PowerShell Attach to Host Process",
            "processId": "${command:PickPSHostProcess}",
            "runspaceId": 1
        },
        {
            "type": "PowerShell",
            "request": "launch",
            "name": "PowerShell Interactive Session",
            "cwd": "${workspaceRoot}"
        }
    ]
}

I don't think this deserves a smiley ;)

capture

@iricigor iricigor changed the title Timed out waiting for the PowerShell extension to start VSCODE- Insiders: Timed out waiting for the PowerShell extension to start Oct 16, 2017
@iricigor
Copy link
Author

This issue was reported in VS Code repo also, but as per explanation there, it is a PowerShell issue: "VSCode has deprecated some API that Powershell is using. Powershell needs to update to this."

@rkeithhill
Copy link
Contributor

I plan to look into this tonight.

@rkeithhill
Copy link
Contributor

rkeithhill commented Oct 17, 2017

Been looking at this for several hours. In the past, debug protocol changes have been minimal and simple to implement. However, the required changes for this change are bit more extensive than I was hoping they would be. It's going to take a little while. I'm hopeful we'll get this implemented before VSCode 1.18 drops.

@DarkLite1
Copy link

#36268

@rkeithhill
Copy link
Contributor

Some progress tonight. Finally got to the point where the PowerShell debugger is started. No breakpoints are being hit but this is better than last night. :-)

@DarkLite1
Copy link

Awesome Keith, one step at a time. The most important thing is, it's not broken in the stable version. Only for us, the beta guinea pigs 😃

@rkeithhill
Copy link
Contributor

Woohoo. Basic debugging is working. Now just need to test the various (and numerous) debug configurations.

@carlocardella
Copy link

carlocardella commented Oct 21, 2017

Great news, thanks :-)

rkeithhill added a commit that referenced this issue Oct 21, 2017
Fix #1046
Fix warning in status bar about ThemeColor

This fix requires PSES PR 556 to eliminate one PSES cause of the debug adapter to crash.

Also npm generated a package-lock.json file which, from what I've read, should be checked in.  I haven't included it in this PR - yet.  Thoughts?

Also, I updated min VSCode version to 1.17.0.  I'm not sure when the new DebugConfigurationProvider API was intro'd.  I  have tested with 1.17.2 and it works there so I'm reasonably confident it will work in 1.17.0.  We might be able to reach back a bit further.  We'd have to find out when this API was intro'd.
@rkeithhill
Copy link
Contributor

PR for the fix has been submitted - pending review.

@rkeithhill
Copy link
Contributor

BTW there is still an issue with "Attach to process" debugging. Separate issue that has me scratching my head. Might need @daviwil help on that one.

@kborowinski
Copy link

@rkeithhill @daviwil: I second that. It would be super great if you guys could fix "attach to process" bug. It's really making my d2d work hard.

daviwil pushed a commit that referenced this issue Oct 26, 2017
Fix #1046
Fix warning in status bar about ThemeColor

This fix requires PSES PR 556 to eliminate one PSES cause of the debug adapter to crash.

Also npm generated a package-lock.json file which, from what I've read, should be checked in.  I haven't included it in this PR - yet.  Thoughts?

Also, I updated min VSCode version to 1.17.0.  I'm not sure when the new DebugConfigurationProvider API was intro'd.  I  have tested with 1.17.2 and it works there so I'm reasonably confident it will work in 1.17.0.  We might be able to reach back a bit further.  We'd have to find out when this API was intro'd.
@daviwil daviwil added this to the 1.5.0 milestone Oct 26, 2017
@rkeithhill
Copy link
Contributor

The original issue should be fixed with the 1.5.0 release. We are tracking the attach to process issue in the PSES repo - PowerShell/PowerShellEditorServices#551

@gdwnet
Copy link

gdwnet commented Nov 13, 2017

I get this on the v1.17 release as well, it seems very hit and miss.

@Bummibaer
Copy link

I'm using V1.19.3 and Windows 7 Professional.
When I run VS as Admin, I get the same error.
It seems, when I resume after some minutes.

@rkeithhill
Copy link
Contributor

Can you give this a try and let me know how it goes? #1048 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants