Skip to content

PowerShell Integrated Console does not appear #2835

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
torx25 opened this issue Jul 27, 2020 · 7 comments
Closed

PowerShell Integrated Console does not appear #2835

torx25 opened this issue Jul 27, 2020 · 7 comments
Labels
Resolution-Duplicate Will close automatically.

Comments

@torx25
Copy link

torx25 commented Jul 27, 2020

PowerShell Integrated Console does not appear at all. When I hit F5 to run random .ps1 script, I got error "Couldn't find a debug adapter descriptor for debug type 'PowerShell' (extension might have failed to activate)".

2020-07-27 13_03_51-Get-Uptime ps1 - PowerShell - Visual Studio Code  Administrator

2020-07-27 13_44_14-Clipboard

I can't get PS extension logs due to error: "command 'PowerShell.GenerateBugReport' not found".

2020-07-27 13_03_38-

I tried to reinstall VS Code, to reinstall the PS extension, to install the preview version of the extension.
I have two user accounts on my PC - 1) admin and 2) non-admin user. And I'm getting issues only when I run VS code as an administrator.
Of course, I tried replacing all admin VSCode settings with non-admin user settings - that didn't work.


launch.json:

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"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": ""
}
]
}


code -v
1.47.2
17299e413d5590b14ab0340ea477cdd86ff13daf
x64

code --list-extensions --show-versions
[email protected]
[email protected]
[email protected]
[email protected]

$PSVersionTable

Name Value


PSVersion 5.1.18362.752
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.752
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1


@ghost ghost added the Needs: Triage Maintainer attention needed! label Jul 27, 2020
@Gabrielbidou
Copy link

Having the exact same issue here, but didn't have it before...

@SydneyhSmith
Copy link
Collaborator

Thanks--looks like the same issue as #2808

@SydneyhSmith SydneyhSmith added Resolution-Duplicate Will close automatically. and removed Needs: Triage Maintainer attention needed! labels Jul 28, 2020
@torx25
Copy link
Author

torx25 commented Jul 29, 2020

Thanks--looks like the same issue as #2808

You're right, updating to 1.47.3 VSCode has resolved my issue. Now I can run scripts as admin - without any errors. Thank you!

2020-07-29 10_02_47-Clipboard

@torx25 torx25 closed this as completed Jul 29, 2020
@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Jul 29, 2020
@TylerLeonhardt TylerLeonhardt removed the Needs: Maintainer Attention Maintainer attention needed! label Jul 29, 2020
@jsantoro339as
Copy link

This error seems to be back again today.

image

image

image

image

image

@andyleejordan
Copy link
Member

@jsantoro339as hi, your issue appears to be a duplicate of #5084. Please try PowerShell 7, or rollback to the previous stable version, while we work on addressing the root cause. Thanks!

@jsantoro339as
Copy link

I tried with PS 7 and same result. Then I completely removed it and all references of it and did a clean install of version 1.94.2 and am getting the same errors seen above. I have more of a feeling that maybe it is the Official PowerShell Extension, any thoughts?

@andyleejordan
Copy link
Member

We're pushing out a pre-release soon that should hopefully address it. I'll let you know when to try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate Will close automatically.
Projects
None yet
Development

No branches or pull requests

6 participants