-
Notifications
You must be signed in to change notification settings - Fork 503
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
Powershell terminal randomly crashes with "Access to the Path e:\ is denied" #1518
Powershell terminal randomly crashes with "Access to the Path e:\ is denied" #1518
Comments
@MayPLaY thanks for this! We will handle that exception better. Can you do me a favor though - can you send me the logs with Diagnostic logging turned on? It's a setting:
|
@tylerl0706 There you go, fresh logs from this morning. |
This looks like two bugs happening here! The PR above fixes the behaviour you're seeing (because it catches the But it's resolving the wrong path too here. You send through |
Ok here's a fun repro: $path = 'file:///e%3A/%23Libraries/iCloudDrive'
$uri = [uri]::new([uri]::UnescapeDataString($path))
$uri.AbsoluteUri # 'file:///e:/#Libraries/iCloudDrive/' :)
$uri.LocalPath # 'e:\' !!!!! |
It looks like we need to not unescape the data string... |
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.
because it does not exist
messageI 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
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: