Closed ooooo84 closed 2 years ago
It seems that the function installed
from lib/core.ps1
has the following definition:
function installed($app, $global)
but in libexec/scoop-reset.ps1
it is used as:
if(!(installed $app)) {
error "'$app' isn't installed"
return
}
Temporary solution seems to be to change libexec/scoop-reset.ps1
to use:
if(!(installed $app $global)) {
error "'$app' isn't installed"
return
}
It seems that the function
installed
fromlib/core.ps1
has the following definition:function installed($app, $global)
but in
libexec/scoop-reset.ps1
it is used as:if(!(installed $app)) { error "'$app' isn't installed" return }
Temporary solution seems to be to change
libexec/scoop-reset.ps1
to use:if(!(installed $app $global)) { error "'$app' isn't installed" return }
it works, thank you
Hey @milsav92, can you make a PR for the fix?
This has been fixed in #4798
I had penned a comment in Pull https://github.com/ScoopInstaller/Scoop/pull/4798#issuecomment-1074855060 I just realized it was penned under a code review and not a bug report.
Just confirming #4796
As @wisdomtooth mentioned, these runtime dependencies have been installed as global -g
and it is preferable that way.
PS C:\vol\scoop_01\scoop\buckets\extras> scoop status
Scoop is up to date.
Missing runtime dependencies:
'android-sdk' requires 'adb'
'scrcpy' requires 'adb'
'sndcpy' requires 'adb', 'extras/vlc'
Bug Report
Current Behavior
Here are some JDKs installed globally by scoop:
when i use
scoop reset temurin11-jdk
, it saidsERROR 'temurin11-jdk' isn't installed
Expected Behavior
Successfully reset shims and environment variables
Additional context/output
Possible Solution
System details
Windows version: 10
OS architecture: 64bit
PowerShell version: 5.1.19041.1320
Scoop Configuration