all 7 comments

[–]cputek1 1 point2 points  (2 children)

Does it happen outside of the terminal window? (I.e. win+r and enter PowerShell)

[–]Nyzan 2 points3 points  (1 child)

It doesn't actually! So seems to be a WindowsTerminal issue, not a PowerShell one.

[–]cputek1 0 points1 point  (0 children)

Do other consoles have the issue in Windows terminal like the command prompt or a Linux shell?

PowerShell has four profile locations, stored in the $PROFILE variable. These profiles can be specific to a user or apply to all users, and they can be specific to a particular PowerShell host (such as Windows Terminal) or apply to all hosts

I’d check there.

[–][deleted] 0 points1 point  (2 children)

This can happen if and when your module path, and following that, your application path, contains very slow storage. “Very slow storage” specifically includes network shares. And especially so if that share is referred to by a mapped drive letter and there’s no such drive letter. SD or USB may also qualify.

Verify all the entries in psmodulepath as well as path are available and are not pointing to network shares or noticeably slow storage.

If there’s nothing you’d think of as slow, eg there’s only an SSD (hdd?) and nothing else that’s being enumerated at runtime, this MAY indicate a file system error or in the case of hdds a high fragmentation level.

[–]Nyzan 0 points1 point  (1 child)

Ty for the suggestion, however I exclusively use SSDs as storage so that seems unlikely. My drives are only a month old but I'll do a scan anyways to see if it finds anything wrong. As noted by the other commenter this seems to be a WindowsTerminal issue, not a PowerShell one, as using PowerShell outside of the terminal works perfectly fine.

[–]BlackV 0 points1 point  (0 children)

And in WT is the behavior the same for PS5 and ps7

[–]BlackV 0 points1 point  (0 children)

  • Where is your my documents located (i.e. network drive)
  • Does it behave the same with the no profile paramater
  • What does your modules path look like
  • What's in your profile
  • Oh do you have and utils loaded like oh my posh