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

Installed PSWSMan - Issues after restarting PowerShell session #3521

Closed
3 tasks done
alfiogennaio opened this issue Dec 21, 2022 · 3 comments
Closed
3 tasks done

Installed PSWSMan - Issues after restarting PowerShell session #3521

alfiogennaio opened this issue Dec 21, 2022 · 3 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@alfiogennaio
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

Oops, something went wrong.
Please report this bug with ALL the details below, including both the 'Environment' and 'Exception' sections.
Please report on GitHub: https://github.com/PowerShell/PSReadLine/issues/new?template=Bug_Report.yaml
Thank you!

### Environment
PSReadLine: 2.2.6
PowerShell: 7.3.1
OS: Darwin 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000
BufferWidth: 226
BufferHeight: 57

Last 0 Keys:



### Exception

System.IO.IOException: The system cannot open the device or file specified. : 'PSReadLineHistoryFile_1039836058'
   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, Nullable`1 lastRunStatus)

Screenshot

Install-WSMan
Copy-Item: Access to the path '/usr/local/microsoft/powershell/7/libmi.dylib.bak' is denied.
Copy-Item: Access to the path '/usr/local/microsoft/powershell/7/libmi.dylib.bak' is denied.
Copy-Item: Access to the path '/usr/local/microsoft/powershell/7/libmi.dylib' is denied.
Copy-Item: Access to the path '/usr/local/microsoft/powershell/7/libpsrpclient.dylib.bak' is denied.
Copy-Item: Access to the path '/usr/local/microsoft/powershell/7/libpsrpclient.dylib.bak' is denied.
Copy-Item: Access to the path '/usr/local/microsoft/powershell/7/libpsrpclient.dylib' is denied.
New-Item: Administrator privilege required for this operation.
New-Item: Administrator privilege required for this operation.
WARNING: WSMan libs have been installed, please restart your PowerShell session to enable it in PowerShell

Environment data

From Environment data script

PS Version: 7.3.1
PS HostName: Visual Studio Code Host
PSReadLine Version: 2.2.6
PSReadLine EditMode: Emacs
OS: Darwin MWQLVWMYXC 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000 arm64
BufferWidth: 205
BufferHeight: 15

From $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.1
PSEdition                      Core
GitCommitId                    7.3.1
OS                             Darwin 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Steps to reproduce

Install PowerShell and.NET on Mac (macOS Ventura - M1 Pro)

Get-InstalledModule
Install-Module -Name AWS.Tools.Common
Install-Module -Name AWSLambdaPSCore
Install-Module -Name ExchangeOnlineManagement
Install-Module -Name PSWSMan
Install-WSMan

Restart pwsh

Expected behavior

The PowerShell should have reloaded.

Actual behavior

PowerShell is not restarting/initializing

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

Close as a duplicate of #2658

@ghost ghost removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jan 3, 2023
@daxian-dbw daxian-dbw added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. and removed Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. labels Jan 3, 2023
@darthwalsh
Copy link

@alfiogennaio did you get this error repeatedly? Only on system boot? Do you know how you were able to reproduce it?

@alfiogennaio
Copy link
Author

alfiogennaio commented Feb 10, 2023

@darthwalsh I have closed the project which required development with PWSH. It was consistent, and It was not on system reboot. I don't recall the details and how I was able to reproduce it.

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

3 participants