I'm experiencing a strange issue with PowerShell where the input randomly hangs right after I start typing. For instance, when I type 'Select-String,' it freezes after I input 'Select-S,' and I can't type or do anything else in that tab afterward. I can move the window around or open new tabs, but if I have multiple tabs open (like five), they all freeze, and eventually, the entire window stops responding. It's important to note that the input freezes mid-typing without me even executing any commands by hitting enter. Has anyone else faced this peculiar issue?
3 Answers
It sounds like your issue might be tied to Windows Terminal rather than PowerShell itself. Have you tried running PowerShell outside of the terminal, maybe with the Run dialog (Win+R)? Sometimes the terminal can have its quirks.
Have you tried running PowerShell with the no profile parameter? Also, what's your modules path and profile like? Sometimes additional utilities, like 'Oh My Posh,' can interfere as well.
One possibility is that your module path or application path has slow storage locations, like network drives. When PowerShell looks for modules or files in slow locations, it can cause delays or hangs. Check your $PSModulePath for any paths pointing to slow storage, and see if anything stands out.
Thanks for the tip! I mainly use SSDs for storage, so I'm not sure that's the issue. Still, I'll run a scan just in case. But it does seem to be more related to the Windows Terminal itself.
Yeah, I tested that, and it worked fine outside the terminal! So it looks like this is indeed a Windows Terminal problem.