You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tried to install/update an app that creates a shortcut, Scoop ran into a series of errors showing Cannot find a provider with the name '[System.IO.Path]', Cannot bind argument to parameter 'Path' because it is null, etc.
Expected Behavior
No error happens.
Additional context/output
Terminal output: (taking scoop update 7zip as an example)
7zip: 21.07 -> 22.00
Updating one outdated app:
Updating '7zip' (21.07 -> 22.00)
Downloading new version
Starting download with aria2 ...
Download: Download Results:
Download: gid |stat|avg speed |path/URI
Download: ======+====+===========+=======================================================
Download: fccdcf|OK | 91KiB/s|C:/Users/LY/scoop/cache/7zip#22.00#https_7-zip.org_a_7z2200-x64.msi
Download: Status Legend:
Download: (OK):download completed.
Checking hash of 7z2200-x64.msi ... ok.
Uninstalling '7zip' (21.07)
Removing shim '7z.shim'.
Removing shim '7z.exe'.
Unlinking ~\scoop\apps\7zip\current
Installing '7zip' (22.00) [64bit]
Loading 7z2200-x64.msi from cache.
Extracting 7z2200-x64.msi ... done.
Linking ~\scoop\apps\7zip\current => ~\scoop\apps\7zip\22.00
Creating shim for '7z'.
New-Item: C:\Users\LY\scoop\apps\scoop\current\lib\core.ps1:453
Line |
453 | New-Item -Path $dir -ItemType Directory | Out-Null
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot find a provider with the name '[System.IO.Path]'.
Convert-Path: C:\Users\LY\scoop\apps\scoop\current\lib\core.ps1:455
Line |
455 | Convert-Path -Path $dir
| ~~~~~~~~~~~~~~~~~~~~~~~
| Cannot find a provider with the name '[System.IO.Path]'.
Convert-Path: C:\Users\LY\scoop\apps\scoop\current\lib\shortcuts.ps1:28
Line |
28 | … onvert-Path $(ensure [System.IO.Path]::Combine([Environment]::GetFold …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot bind argument to parameter 'Path' because it is null.
OperationStopped: C:\Users\LY\scoop\apps\scoop\current\lib\shortcuts.ps1:57
Line |
57 | $wsShell.Save()
| ~~~~~~~~~~~~~~~
| Unable to save shortcut "C:\7-Zip.lnk".
Creating shortcut for 7-Zip (7zFM.exe)
Persisting Codecs
Persisting Formats
Running post_install script...
'7zip' (22.00) was installed successfully!
Notes
-----
Add 7-Zip as a context menu option by running: "C:\Users\LY\scoop\apps\7zip\current\install-context.reg"
This is most likely related to a freshly merged PR #4410.
Bug Report
Current Behavior
When I tried to install/update an app that creates a shortcut, Scoop ran into a series of errors showing
Cannot find a provider with the name '[System.IO.Path]'
,Cannot bind argument to parameter 'Path' because it is null
, etc.Expected Behavior
No error happens.
Additional context/output
Terminal output: (taking
scoop update 7zip
as an example)This is most likely related to a freshly merged PR #4410.
Possible Solution
None for the time being.
System details
Scoop Configuration
The text was updated successfully, but these errors were encountered: