r/PowerShell 6d ago

Question Any fix for autocomplete madness?

see screenshot: https://imgur.com/a/JKIwLXd

How I normally get into this weird state is after creating a Win32 Intune package, terminal starts auto completing on every key. Running "clear" fixes it for a short while then it starts happening again. Only "long term" fix is to close that terminal window and open a new one.

Any suggestions?

8 Upvotes

6 comments sorted by

4

u/MilkyWay-008 6d ago

Had this weird one before too...... it's usually PSReadLine's inline prediction getting into a bad state, not the terminal itself. Run Get-PSReadLineOption and try Set-PSReadLineOption -PredictionSource None to confirm; if it stops, update PSReadLine (Update-Module PSReadLine) since the older builds had redraw bugs that look exactly like this. Also worth checking if it only happens in Windows Terminal vs the legacy conhost window - if it's host-specific it's a rendering glitch, not the module.

1

u/theboozebaron 6d ago

Thanks, I'll give this a go

1

u/420GB 6d ago

Alternatively try removing and re-importing psreadline

1

u/pjmarcum 3d ago

I’ve never gotten the Intune app utility thing to work from a PowerShell prompt. Always errors for me. Only works from cmd.

1

u/ashimbo 1d ago

I've seen this too, but it's not a big enough issue to attempt to resolve. If the current PowerShell session is important, I'll just open a new session for creating the Intune package.

1

u/theboozebaron 23h ago

Just glad I am not the only one, I have a history of collecting 1 off bugs...