I've been having this really strange issue where my PowerShell input just hangs out of nowhere right after I start typing. For instance, if I type "Select-String", I can only get as far as "Select-S" before the cursor freezes, and then I can't type anything in that tab. Curiously, I can still move the window around and even create new tabs. But if I open several tabs (like 5) and they all freeze, the whole window eventually stops responding.
This doesn't seem to be related to running commands because it freezes mid-type without pressing enter. Has anyone else run into this odd problem?
3 Answers
Have you checked the location of your documents? Sometimes if they're on a network drive, it can cause issues. Also, have you tried running without any profiles? You might want to check what's loaded in your modules and if any utils like Oh My Posh are affecting performance.
This kind of freezing can happen if your module path or application path includes slow storage options like network shares. Check your psmodulepath and make sure none of the entries are pointing to a loaded network drive that might not be accessible. If you only have SSDs, it might not be the issue, but it’s good to verify that everything is set up properly.
It sounds like this might be a Windows Terminal issue rather than a PowerShell one. Have you tried running PowerShell outside of the terminal? A lot of users report that it doesn’t freeze in that case. You could try launching it using Win+R and typing "powershell" to see if that helps the situation.
Good idea! I tried it out, and it actually works fine! So it seems like the problem is specific to Windows Terminal.
Thanks for the tip! I do only use SSDs, and they’re pretty new, but I'll do a quick scan to see if there’s anything weird going on.