Skip to content

Get-Item and Test-Path failes for some registry entries in Integrated console #1271

@pramodag

Description

@pramodag

System Details

  • Operating system name and version: Windows 10 Enterprise
  • VS Code version: 1.22.2
  • PowerShell extension version: 1.6.0
  • Output from $PSVersionTable:
    Name Value

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

Copy / paste the following commands into the PowerShell Integrated Console, and paste the output here:

PowerShell Integrated Console

PS C:\Scripts\PowerShell-Modules> code -v
1.22.2
3aeede733d9a3098f7b4bdc1f66b63b0f48c1ef9
x64
PS C:\Scripts\PowerShell-Modules> $pseditor.EditorServicesVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
1      6      0      0


PS C:\Scripts\PowerShell-Modules> code --list-extensions --show-versions
DotJoshJohnson.xml@1.9.2
eliean.vscode-svn@0.1.0
in4margaret.compareit@0.0.2
johnstoncode.svn-scm@1.29.0
ms-vscode.PowerShell@1.6.0
sandy081.todotasks@0.5.0
streetsidesoftware.code-spell-checker@1.6.7
wayou.vscode-todo-highlight@0.5.12
PS C:\Scripts\PowerShell-Modules> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.16299.98
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.16299.98
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

Get-Item and Test-Item failes with Can not find path error in Integrated console. But when the same command is executed in Windows Powershell console in VS code or the Windows PowerShell window it works fine. I am executing all sessions with admin privilages and same user.

Execution screenshots:
Integrated console:
image

VS code PowerShell console:
image

Windows PowerShell window:
image

This was working fine earlier. I belive the issue is from Feb release.

Attached Logs

Follow the instructions in the README
about capturing and sending logs.
VS Code logs.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions