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

Error starting PowerShell #2380

Closed
ryantrem opened this issue Apr 21, 2021 · 1 comment
Closed

Error starting PowerShell #2380

ryantrem opened this issue Apr 21, 2021 · 1 comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@ryantrem
Copy link

I had two terminal tabs open and I ran pwsh from each of them (one immediately after the other). They were both loading my custom profile at the same time, including my custom prompt. Not sure if these details are relevant. One of the terminals though showed the error below though. I've been using PowerShell on Mac daily for the last 16 months and this is the first time I've seen this. Logging an issue as requested.

Environment

PSReadLine: 2.0.0
PowerShell: 7.0.0
OS: Darwin 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64
Last 0 Keys


Exception

System.IO.IOException: The system cannot open the device or file specified. : 'PSReadLineHistoryFile_1578830712'
   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)
@ghost ghost added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Apr 21, 2021
@daxian-dbw
Copy link
Member

@ryantrem 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.

@ghost ghost removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Apr 29, 2021
@daxian-dbw daxian-dbw added the Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. label Sep 6, 2023
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