Failed to call GetHistoryItems
#3948
Labels
Needs-Triage 🔍
It's a new issue that core contributor team needs to triage.
GetHistoryItems
#3948
Prerequisites
Exception report
Screenshot
Environment data
Steps to reproduce
I would like to run a small init script before a PowerShell session starts to access PSReadLine command history there. Unfortunately,
[Microsoft.PowerShell.PSConsoleReadLine]::GetHistoryItems()
fails with the error.Expected behavior
History items can be accessed successfully, no exception happens and
not null
is printed to the console.Actual behavior
The text was updated successfully, but these errors were encountered: