Skip to content

Powershell terminal randomly crashes with "Access to the Path e:\ is denied" #1518

Closed
@MayPLaY

Description

@MayPLaY

Issue Description

Hi!

A coworker gave me one of his file to review it. The file got this line:
installCAIS_Traitement -ConfigurationData "E:\Sources\DSQ_INSTALL_CAIS_Traitement_LabFrancois.psd1" -OutputPath "./MOF"

It randomly (2-3 times/day) makes my Powershell terminal (EditorServices) crashes with this error :
System.AggregateException: One or more errors occurred. ---> System.UnauthorizedAccessException: Access to the path 'e:\' is denied.

  • I do have an e:\ drive mapped.
  • I do not have a folder name "Sources" nor the specified file on my computer.
  • My powershell terminal has no problem accessing the e:\ drive.
  • Running a get-content command with the specified path gives the expected because it does not exist message
  • Security on drive is basic stuff.
  • See the logs below.

I didn't find a way to reproduce it. I haven't try to create the specified folder/file since my gut tells me the problem isn't there . Removing the line seems to fix the problem.

Thanks.

Attached Logs

Log.zip

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.17134
VSCode 1.27.1
PowerShell Extension Version 1.8.4

PowerShell Information

Name Value
PSVersion 5.1.17134.228
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.17134.228
BuildVersion 10.0.17134.228
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
PowerShell ms-vscode 1.8.4
python ms-python 2018.8.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions