Skip to content

PowerShell.OnIdle seems not to fire in PSReadline 2.0 beta #773

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

Closed
nickcox opened this issue Oct 4, 2018 · 3 comments
Closed

PowerShell.OnIdle seems not to fire in PSReadline 2.0 beta #773

nickcox opened this issue Oct 4, 2018 · 3 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@nickcox
Copy link

nickcox commented Oct 4, 2018

Environment data

PS version: 5.1.17134.228
PSReadline version: 2.0.0-beta1
os: 10.0.17134.1 (WinBuild.160101.0800)
PS file version: 10.0.17134.1 (WinBuild.160101.0800)

Steps to reproduce or exception report

> Register-EngineEvent -SourceIdentifier PowerShell.OnIdle -Action {Write-Host 'test message'}
# ...nothing happens
> Remove-Module PSReadline
> test message
test message
test message
...
@SeeminglyScience
Copy link
Contributor

@nickcox It looks like you are on a slightly older beta build. Could you try updating to 2.0.0-beta3 see if it still happens for you?

@lzybkr
Copy link
Contributor

lzybkr commented Oct 12, 2018

I can't reproduce this with 2.0.0-beta3 in Windows PowerShell or PowerShell Core.

I saw the same issue reported here - PowerShell/PowerShell#8000 - maybe there's something common about the environments to suggest where the problem lies.

@nickcox
Copy link
Author

nickcox commented Oct 12, 2018

Yep, apologies, it's working fine in 2.0.0-beta3. 🖖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

3 participants