Doesn't detect pwsh installed in custom directory from Scoop
#8,264 建立於 2020年11月13日
倉庫指標
- Star
- (35,764 star)
- PR 合併指標
- (平均合併 27天 19小時) (30 天內合併 24 個 PR)
描述
Environment
Windows build number: 10.0.19042.0 Windows Terminal version (if applicable): 1.4.3141.0
PowerShell Core: 7.1.0 Scoop
Steps to reproduce
- Installing Scoop to Custom Directory
- Install PowerShell Core via Scoop
- Open Windows Terminal
Expected behavior
When environment variable SCOOP or SCOOP_GLOBAL is defined, Terminal should search pwsh.exe in %SCOOP% and %SCOOP_GLOBAL% in addition to %USERPROFILE%\scoop.
Actual behavior
Error dialog is opened. The content of error message is "An error occurred while loading the settings." (Sorry, I don't know the message of English version because I use Japanese version).
And, PowerShell is used instead, and PowerShell Core doesn't appear in the shell list.
Searching place is only %USERPROFILE%scoop for Scoop.
(ref: PowershellCoreProfileGenerator.cpp Line 281, Tag 1.4.3141.0)
Related issue
#1415