Moeologist / scoop-completion

scoop tab completion, work with powershell
MIT License
173 stars 12 forks source link

Fix Import-Module Path not found bug #23

Closed neo-sam closed 3 years ago

neo-sam commented 3 years ago
PS C:\Users\me> Import-Module "$($(Get-Item $(Get-Command scoop).Path).Directory.Parent.FullName)\modules\scoop-completion"
Get-Item: Cannot bind argument to parameter 'Path' because it is null.
Import-Module: The specified module '\modules\scoop-completion' was not loaded because no valid module file was found in any module directory.

bug: (Get-Command scoop).Path is null. System Info:

PS C:\Users\me> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.1.4
PSEdition                      Core
GitCommitId                    7.1.4
OS                             Microsoft Windows 10.0.22000
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

PS C:\Users\me> scoop --version
Current Scoop version:
09200504 (HEAD -> master, origin/master, origin/HEAD) reset: skip when app instance is running (#4359)