Skip to content
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

The system cannot open the device or file specified. : 'PSReadLineHistoryFile_3505960416' #1665

Closed
yaananth opened this issue Jul 15, 2020 · 1 comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@yaananth
Copy link

yaananth commented Jul 15, 2020

I believe something was stuck and I canceled the session, later when I try to start powershell.. I get

Environment

PSReadLine: 2.0.0
PowerShell: 7.0.2
OS: Darwin 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64
Last 0 Keys

Exception

System.IO.IOException: The system cannot open the device or file specified. : 'PSReadLineHistoryFile_3505960416'
   at System.Threading.Mutex.CreateMutexCore(Boolean initiallyOwned, String name, Boolean& createdNew)
   at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name)
   at Microsoft.PowerShell.PSConsoleReadLine.DelayedOneTimeInitialize()
   at Microsoft.PowerShell.PSConsoleReadLine.Initialize(Runspace runspace, EngineIntrinsics engineIntrinsics)
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)

Closing the terminal and reopening works.

@ghost ghost added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jul 15, 2020
@daxian-dbw
Copy link
Member

@yaananth Thanks for reporting the issue. This is a duplicate of #1464. It's likely a permission issue to /private/tmp. Please take a look at #1464 (comment) to see if that fix your problem too.

@daxian-dbw daxian-dbw added the Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. label Jul 16, 2020
@ghost ghost removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants