ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
21.19k stars 1.41k forks source link

[Bug] scoop status error #6103

Closed Jordan-Haidee closed 2 months ago

Jordan-Haidee commented 2 months ago

Bug Report

Current Behavior

After running scoop status, it raise an error:

Where-Object: F:\scoop\apps\scoop\current\libexec\scoop-status.ps1:58
Line |
  58 |      Get-ChildItem $dir | Where-Object name -NE 'scoop' | ForEach-Obje …
     |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The 'Ine' operator failed: The term 'Get-UserAgent' is not recognized as a name of a cmdlet,
     | function, script file, or executable program. Check the spelling of the name, or if a path
     | was included, verify that the path is correct and try again..

Expected Behavior

No error message should raise, and status of installed softwares should be displayed normally.

Additional context/output

Where-Object: F:\scoop\apps\scoop\current\libexec\scoop-status.ps1:58
Line |
  58 |      Get-ChildItem $dir | Where-Object name -NE 'scoop' | ForEach-Obje …
     |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The 'Ine' operator failed: The term 'Get-UserAgent' is not recognized as a name of a cmdlet,
     | function, script file, or executable program. Check the spelling of the name, or if a path
     | was included, verify that the path is correct and try again..

Name         Installed Version           Latest Version           Missing Dependencies Info
----         -----------------           --------------           -------------------- ----
7zip         24.07                       24.08
bruno        1.23.1                      1.24.0
cmake        3.30.1                      3.30.2
everything   1.4.1.1024                  1.4.1.1026
eza          0.18.16                     0.19.0
ffmpeg       7.0                         7.0.2
flutter      3.22.3                      3.24.0
frp          0.58.0                      0.59.0
ghostscript  10.03.0                     10.03.1
git          2.45.2                      2.46.0
gitbutler    0.12.12                     0.12.19
imagemagick  7.1.1-32                    7.1.1-36
inkscape     1.3.1_2023-11-16_91b66b0783 1.3.2_2023-11-25_091e20e
just         1.29.1                      1.34.0
koodo-reader 1.6.6                       1.6.9
latexindent  3.24.1                      3.24.4
lua          5.4.2                       5.4.7-2
maven        3.9.7                       3.9.8
miniconda3   24.4.0-0                    24.5.0-0
mysql        8.4.0                       9.0.1
mysql-shell  8.4.0                       9.0.1
obsidian     1.6.3                       1.6.7
octave       9.1.0                       9.2.0
pandoc       3.2                         3.3
pdfsam       5.2.3                       5.2.4
procs        0.14.5                      0.14.6
redis        7.2.5                       7.4.0
texstudio    4.8.0                       4.8.1
typora       1.9.3                       1.9.5
uv           0.2.34                      0.2.36

Possible Solution

I don't know.

System details

Windows version: 11

OS architecture: 64bit

PowerShell version: 7.4.4

Additional software: [(optional) e.g. ConEmu, Git]

Scoop Configuration

{
  "global_path": "F:\\scoop\\global_apps",
  "last_update": "2024-08-14T19:36:03.6790831+08:00",
  "root_path": "F:/scoop",
  "scoop_repo": "http://github.com/ScoopInstaller/Scoop",
  "scoop_branch": "develop",
  "proxy": "none",
  "aria2-enabled": true
}
niheaven commented 2 months ago

Could not reproduce, the Get-UserAgent function isn't being used here.

Jordan-Haidee commented 2 months ago

Yeah, so it's really strange.

niheaven commented 2 months ago

Okay, so except this one, is there any other failed command?

Jordan-Haidee commented 2 months ago

No others failed