Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARN Error parsing JSON at .json #79

Open
eidswe opened this issue Jan 11, 2023 · 17 comments
Open

WARN Error parsing JSON at .json #79

eidswe opened this issue Jan 11, 2023 · 17 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed other_help Help with various questions, not directly connected to this repo! question Further information is requested

Comments

@eidswe
Copy link

eidswe commented Jan 11, 2023

Bug Report

duplicati-client.json.
[email protected]+x32.json.
[email protected]+x32.json.
[email protected]+x32.json.
[email protected]+x32.json.
[email protected]+x32.json.
[email protected]+x32.json.
groff.json.
[email protected].
[email protected].
mpc-hc-portable.json.
[email protected].
[email protected]+gcc.json.
[email protected]+gcc.json.
[email protected]+gcc.json.
[email protected]+gcc.json.
[email protected].
[email protected].
[email protected].
[email protected].
[email protected].
[email protected].
[email protected].
[email protected].
[email protected].
[email protected].
resourceHacker.json.
[email protected].
rsync.json.
[email protected].
[email protected].
UltraSearch.json.
[email protected].
wps-office-2016-lite.json.

Current Behaviour

After adding this bucket, when using scoop to search for software, the search is slow and an error is reported. The error message is as follows:

PS C:\Users\eidswe> scoop search 7z
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket.dprint.json.
Split-Path : 无法将参数绑定到参数“Path”,因为该参数是空值。
所在位置 C:\Users\eidswe\scoop\apps\scoop\current\libexec\scoop-search.ps1:30 字符: 29
$fname = Split-Path $exe -Leaf -ErrorAction Stop
~~~~
CategoryInfo : InvalidData: (:) [Split-Path],ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.SplitPathCo
mmand

Split-Path : 无法将参数绑定到参数“Path”,因为该参数是空值。
所在位置 C:\Users\eidswe\scoop\apps\scoop\current\libexec\scoop-search.ps1:30 字符: 29
$fname = Split-Path $exe -Leaf -ErrorAction Stop
~~~~
CategoryInfo : InvalidData: (:) [Split-Path],ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.SplitPathCo
mmand

WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\duplicati-client.json.
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected]+x32.json.
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected]+x32.json.
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected]+x32.json.
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected]+x32.json.
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected]+x32.json.
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected]+x32.json.
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\groff.json.
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected].
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected].
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\mpc-hc-portable.json.
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected].
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected]+gcc.json.
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected]+gcc.json.
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected]+gcc.json.
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected]+gcc.json.
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected].
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected].
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected].
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected].
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected].
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected].
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected].
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected].
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected].
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected].
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\resourceHacker.json.
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected].
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\rsync.json.
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected].
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected].
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\UltraSearch.json.
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\[email protected].
WARN Error parsing JSON at C:\Users\eidswe\scoop\buckets\DEV-Tools\bucket\wps-office-2016-lite.json.
Split-Path : 无法将参数绑定到参数“Path”,因为该参数是空值。
所在位置 C:\Users\eidswe\scoop\apps\scoop\current\libexec\scoop-search.ps1:30 字符: 29
$fname = Split-Path $exe -Leaf -ErrorAction Stop
~~~~
CategoryInfo : InvalidData: (:) [Split-Path],ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.SplitPathCo
mmand

Split-Path : 无法将参数绑定到参数“Path”,因为该参数是空值。
所在位置 C:\Users\eidswe\scoop\apps\scoop\current\libexec\scoop-search.ps1:30 字符: 29
$fname = Split-Path $exe -Leaf -ErrorAction Stop
~~~~
CategoryInfo : InvalidData: (:) [Split-Path],ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.SplitPathCo
mmand

Results from local buckets...

Name Version Source Binaries


7zip-aoks 22.01 DEV-Tools
7zip-beta 22.01 DEV-Tools
7zip-extra 2201 DEV-Tools
7Zip-Install 22.01 DEV-Tools
7zip-lzma 2201 DEV-Tools
7zip-nsis 22.01 DEV-Tools
7zip-zs 21.03-v1.5.0-R2 DEV-Tools
7zip-zstd-sdu 21.03-v1.5.0-R2 DEV-Tools
7zip-zstd v21.03-v1.5.0-R2 DEV-Tools
7zip 22.01 DEV-Tools
7zip19.00-helper 19.00 DEV-Tools
[email protected] 16.04 DEV-Tools
[email protected] 18.05 DEV-Tools
[email protected] 19.00 DEV-Tools
[email protected]+zs 21.02+zs DEV-Tools
[email protected]+zs 21.03+zs DEV-Tools
[email protected] 9.38 DEV-Tools
7ZipBeta-Portable 22.01 DEV-Tools
7ztm 2.1.1 DEV-Tools
asar7z 1.4 DEV-Tools
modern7z-aoks 1.8.10 DEV-Tools
modern7z 1.8.10 DEV-Tools
nanazip-portable 2.0.450 DEV-Tools 7z | 7zG
nanazip 2.0.450 DEV-Tools 7z | 7zG
7ztm 2.1.1 extras
asar7z 1.4 extras
7zip 22.01 main
7zip19.00-helper 19.00 main
modern7z 1.8.10 main
nanazip 2.0.450 main 7z | 7zG
7ztm 2.1.1 seumsc_scoop-seu
7zip-beta 22.01 versions
7zip-zstd v21.03-v1.5.0-R2 versions

Expected Behaviour

PS C:\Users\eidswe> scoop search 7z
Results from local buckets...

Name Version Source Binaries


7ztm 2.1.1 extras
asar7z 1.4 extras
7zip 22.01 main
7zip19.00-helper 19.00 main
modern7z 1.8.10 main
nanazip 2.0.450 main 7z | 7zG
7ztm 2.1.1 seumsc_scoop-seu
7zip-beta 22.01 versions
7zip-zstd v21.03-v1.5.0-R2 versions

Additional context/output

Possible Solution

I saw similar questions: JSON parser errors with scoop #10 , but don't know how to solve this problem, could you help me?

System details

Windows version: 11

OS architecture: [e.g. 32bit, 64bit]64bit

PowerShell version: [output of "$($PSVersionTable.PSVersion)"]
Major Minor Build Revision


5 1 22000 1335

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

Scoop Configuration

{
"last_update": "2023-01-11T22:11:17.7775487+08:00",
"scoop_branch": "master",
"scoop_repo": "https://github.com/ScoopInstaller/Scoop"
}

//# Your configuration here
@eidswe eidswe added the bug Something isn't working label Jan 11, 2023
@anderlli0053
Copy link
Owner

@eidswe That's interesting at least, when i try to search for "7z" - scoop search 7z , it doesn't report anything, even tried removing and re-adding the bucket, and also on the second PC and laptop and it works fine without any errors.

PS C:\Users\ander> scoop search 7z
____________________
#1 Searching  [buckets] C:\Users\ander\scoop\buckets
- 43 apps matched in 12/43 buckets

____________________
#2 Searching  [html] https://rasa.github.io/scoop-directory/by-score.html
using 0m old cache: C:\Users\ander\scoop\cache\buckets\https%3A%2F%2Frasa.github.io%2Fscoop-directory%2Fby-score.html.html
- 80 apps matched in 38/819 buckets

____________________
TOTAL: 123 apps matched in 50 buckets from 2 sources

MERGED RESULTS:

'/ACooper81_scoop-apps' bucket:
    7ZipBeta-Portable (22.01): 7-Zip Beta. Multi-format compression/decompression tool (beta version)
    7Zip-Install (22.01): 7-Zip. A multi-format file archiver with high compression ratios
    NanaZip-Portable (2.0.450) [7z]: NanaZip. The 7-Zip derivative intended for the modern Windows experien

'/DEV-Tools' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios
 ** 7zip19.00-helper (19.00): 7-Zip 19.00 helper package (for extracting files in other packages)
    [email protected] (16.04)
    [email protected] (18.05): A multi-format file archiver with high compression ratios
    [email protected] (19.00): A multi-format file archiver with high compression ratios
    [email protected]+zs (21.02+zs): 7-Zip with support for Zstandard, Brotli, Lz4, Lz5 and Lizard Compression
    [email protected]+zs (21.03+zs): 7-Zip with support for Zstandard, Brotli, Lz4, Lz5 and Lizard Compression
    [email protected] (9.38)
    7zip-aoks (22.01): A multi-format file archiver with high compression ratios
    7zip-beta (22.01): Multi-format compression/decompression tool (beta version)
    7ZipBeta-Portable (22.01): 7-Zip Beta. Multi-format compression/decompression tool (beta version)
    7zip-extra (2201): Standalone console version of 7-Zip (7za.exe & DLLs)
    7Zip-Install (22.01): 7-Zip. A multi-format file archiver with high compression ratios
    7zip-lzma (2201): The LZMA SDK provides the documentation, samples, header files, libraries, and tools
    7zip-nsis (22.01): 7zip with NSIS script decompliling.
    7zip-zs (21.03-v1.5.0-R2): 7-Zip with support for Brotli, Fast-LZMA2, Lizard, LZ4, LZ5 and Zstandard.
    7zip-zstd (v21.03-v1.5.0-R2): Multi-format compression/decompression tool with brotli and other codecs
    7zip-zstd-sdu (21.03-v1.5.0-R2): Multi-format compression/decompression tool with brotli and other code
    7ztm (2.1.1): Theme manager for 7-Zip
    asar7z (1.4): 7-Zip plugin that allows 7-zip to open, modify, or create Electron .asar archives.
 ** modern7z (1.8.10): 7-Zip plugin for the leading-edge compression methods; zstd, Brotli, LZ4, LZ5, Lizar
    modern7z-aoks (1.8.10): 7-Zip plugin for the leading-edge compression methods; zstd, Brotli, LZ4, LZ5,
    nanazip (2.0.450) [7z]: The 7-Zip derivative intended for the modern Windows experience
    nanazip-portable (2.0.450) [7z]: NanaZip. The 7-Zip derivative intended for the modern Windows experien

'/Gladtbam_Bucket' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios

'/extras' bucket:
    7ztm (2.1.1): Theme manager for 7-Zip
    asar7z (1.4): 7-Zip plugin that allows 7-zip to open, modify, or create Electron .asar archives.

'/gregwen_grewen-scoop' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios

'/hoilc_scoop-lemon' bucket:
    7zip-zs (21.03-v1.5.0-R2): 7-Zip with support for Brotli, Fast-LZMA2, Lizard, LZ4, LZ5 and Zstandard.

'/main' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios
 ** 7zip19.00-helper (19.00): 7-Zip 19.00 helper package (for extracting files in other packages)
 ** modern7z (1.8.10): 7-Zip plugin for the leading-edge compression methods; zstd, Brotli, LZ4, LZ5, Lizar

'/naderi_scoop-bucket' bucket:
    7zip-extra (2201): Standalone console version of 7-Zip (7za.exe & DLLs)
    7zip-lzma (2201): The LZMA SDK provides the documentation, samples, header files, libraries, and tools

'/nuke' bucket:
    7zip-nsis (22.01): 7zip with NSIS script decompliling.

'/su-u_scoop-bucket' bucket:
 ** 7zip (19.00): A multi-format file archiver with high compression ratios

'/tomcdj71_scoop-essential-apps' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios

'/versions' bucket:
    7zip-beta (22.01): Multi-format compression/decompression tool (beta version)
    7zip-zstd (v21.03-v1.5.0-R2): Multi-format compression/decompression tool with brotli and other codecs

'https://github.com/ACooper81/Scoop-SystemInstalls' bucket:
    7zip-install (19.00): A multi-format file archiver with high compression ratios

'https://github.com/ACooper81/scoop-apps' bucket:
    7ZipBeta-Portable (22.01): 7-Zip Beta. Multi-format compression/decompression tool (beta version)
    7Zip-Install (22.01): 7-Zip. A multi-format file archiver with high compression ratios

'https://github.com/AntonOks/scoop-aoks' bucket:
    7zip-aoks (22.01): A multi-format file archiver with high compression ratios

'https://github.com/DavidBrockmeier/bucket' bucket:
 ** 7zip (21.04): A multi-format file archiver with high compression ratios
    7zip-alpha (21.02): A multi-format file archiver with high compression ratios

'https://github.com/DoveBoy/Apps' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios
    7zip-beta (22.01): Multi-format compression/decompression tool (beta version)

'https://github.com/DragonightFury/DragonightFuryScoopBucket' bucket:
    7zip-np (22.01): A multi-format file archiver with high compression ratios

'https://github.com/Gladtbam/Bucket' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios

'https://github.com/HUMORCE/nuke' bucket:
    7zip-nsis (22.01): 7zip with NSIS script decompliling.

'https://github.com/Lanservery/aojdk' bucket:
 ** 7zip (19.00): A multi-format file archiver with high compression ratios
    7zip21 (21.06): A multi-format file archiver with high compression ratios

'https://github.com/LuoHuiRu/ScoopBucket' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios

'https://github.com/Vedabahu/mybucket' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios

'https://github.com/akirco/aki-apps' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios

'https://github.com/anderlli0053/DEV-tools' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios
 ** 7zip19.00-helper (19.00): 7-Zip 19.00 helper package (for extracting files in other packages)
    [email protected] (16.04): [<em>Failed validating 'required' in schema:</em>]
    [email protected] (18.05): A multi-format file archiver with high compression ratios
    [email protected] (19.00): A multi-format file archiver with high compression ratios
    [email protected]+zs (21.02+zs): 7-Zip with support for Zstandard, Brotli, Lz4, Lz5 and Lizard Compression
    [email protected]+zs (21.03+zs): 7-Zip with support for Zstandard, Brotli, Lz4, Lz5 and Lizard Compression
    [email protected] (9.38): [<em>Failed validating 'required' in schema:</em>]
    7zip-aoks (22.01): A multi-format file archiver with high compression ratios
    7zip-beta (22.01): Multi-format compression/decompression tool (beta version)
    7ZipBeta-Portable (22.01): 7-Zip Beta. Multi-format compression/decompression tool (beta version)
    7zip-extra (2201): Standalone console version of 7-Zip (7za.exe & DLLs)
    7Zip-Install (22.01): 7-Zip. A multi-format file archiver with high compression ratios
    7zip-lzma (2201): The LZMA SDK provides the documentation, samples, header files, libraries, and tools
    7zip-nsis (22.01): 7zip with NSIS script decompliling.
    7zip-zs (21.03-v1.5.0-R2): 7-Zip with support for Brotli, Fast-LZMA2, Lizard, LZ4, LZ5 and Zstandard.
    7zip-zstd (v21.03-v1.5.0-R2): Multi-format compression/decompression tool with brotli and other codecs
    7zip-zstd-sdu (21.03-v1.5.0-R2): Multi-format compression/decompression tool with brotli and other code
    7ztm (2.1.1): Theme manager for 7-Zip
    asar7z (1.4): 7-Zip plugin that allows 7-zip to open, modify, or create Electron .asar archives.
 ** modern7z (1.8.10): 7-Zip plugin for the leading-edge compression methods; zstd, Brotli, LZ4, LZ5, Lizar
    modern7z-aoks (1.8.10): 7-Zip plugin for the leading-edge compression methods; zstd, Brotli, LZ4, LZ5,

'https://github.com/asoluter/Scoop-Asoluter' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios

'https://github.com/bkmeneguello/scoop-bucket' bucket:
    lzip7z (1.6): A small plugin for the popular 7-Zip archiver. You can use Lzip7z to open, modify, or cre

'https://github.com/brave-simpletons/scoop-the-business' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios

'https://github.com/brian6932/dank-scoop' bucket:
    7zTC (2.5): Easy-to-use 7-Zip/NanaZip manager for toolbar, file-types and icons.

'https://github.com/ducpm1310/scoop-bucket' bucket:
 ** 7zip (16.04): A multi-format file archiver with high compression ratios

'https://github.com/duzyn/scoop-cn' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios
 ** 7zip19.00-helper (19.00): 7-Zip 19.00 helper package (for extracting files in other packages)
    7zip-beta (22.01): Multi-format compression/decompression tool (beta version)
    7zip-zstd (v21.03-v1.5.0-R2): Multi-format compression/decompression tool with brotli and other codecs
    7ztm (2.1.1): Theme manager for 7-Zip
    asar7z (1.4): 7-Zip plugin that allows 7-zip to open, modify, or create Electron .asar archives.
 ** modern7z (1.8.10): 7-Zip plugin for the leading-edge compression methods; zstd, Brotli, LZ4, LZ5, Lizar

'https://github.com/gregwen/grewen-scoop' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios

'https://github.com/hoilc/scoop-lemon' bucket:
    7zip-zs (21.03-v1.5.0-R2): 7-Zip with support for Brotli, Fast-LZMA2, Lizard, LZ4, LZ5 and Zstandard.

'https://github.com/huangnauh/carrot' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios

'https://github.com/iamsilvio/scoop-bucket-deleteonerror' bucket:
    7z-zstd (21.03): A multi-format file archiver with high compression ratios

'https://github.com/kdpuvvadi/scoop-bucket' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios

'https://github.com/kkkykin/Personal-Scoop-Bucket' bucket:
    total7zip-tc (0.8.5.6): Packer plug-in based on 7z.dll and 7zG.exe for Total Commander.

'https://github.com/mgziminsky/scoop-bucket' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios

'https://github.com/naderi/scoop-bucket' bucket:
    7zip-extra (2201): Standalone console version of 7-Zip (7za.exe & DLLs)
    7zip-lzma (2201): The LZMA SDK provides the documentation, samples, header files, libraries, and tools

'https://github.com/pm-duc/scoop' bucket:
 ** 7zip (19.00): A multi-format file archiver with high compression ratios

'https://github.com/ptbwu/dango' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios

'https://github.com/rivy/scoop-bucket' bucket:
 ** 7zip (21.03+zs): 7-Zip with support for Zstandard, Brotli, Lz4, Lz5 and Lizard Compression
    [email protected] (16.04): [<em>Failed validating 'required' in schema:</em>]
    [email protected] (18.05): A multi-format file archiver with high compression ratios
    [email protected] (19.00): A multi-format file archiver with high compression ratios
    [email protected]+zs (21.02+zs): 7-Zip with support for Zstandard, Brotli, Lz4, Lz5 and Lizard Compression
    [email protected]+zs (21.03+zs): 7-Zip with support for Zstandard, Brotli, Lz4, Lz5 and Lizard Compression
    [email protected] (9.38): [<em>Failed validating 'required' in schema:</em>]

'https://github.com/seumsc/scoop-seu' bucket:
    7ztm (2.1.1): Theme manager for 7-Zip.

'https://github.com/su-u/scoop-bucket' bucket:
 ** 7zip (19.00): A multi-format file archiver with high compression ratios

'https://github.com/tomcdj71/scoop-essential-apps' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios

'https://github.com/wholegale39/onetab' bucket:
 ** 7zip (22.01): A multi-format file archiver with high compression ratios

'https://github.com/yzlc/scoop' bucket:
    7zConf (latest): 7zConf [<em>Failed validating 'required' in schema:</em>]

2023/01/11 17:31:33 Search took 1.8254531s

@anderlli0053
Copy link
Owner

@eidswe

Run scoop update and maybe try to update your PowerShell to the latest 7.x.x one instead of using 5.

https://github.com/PowerShell/PowerShell/releases/tag/v7.3.1

So you can choose this or if that doesn't work try this - both of the links above are from the official Microsoft PowerShell repository.

Please report back about the results..

@anderlli0053 anderlli0053 pinned this issue Jan 11, 2023
@eidswe
Copy link
Author

eidswe commented Jan 12, 2023

@anderlli0053
This problem is very strange, because there is no problem after searching only other buckets, but the problem will appear as long as this bucket is installed.
The result of trying your method is as follows:
scoop update doesn't work, error message unchanged;

After installing PowerShell 7.3.0, the output of the search result remains unchanged, but the error message changes. The output is as follows:

PowerShell 7.3.0
PS C:\Users\eidswe> scoop search 7z
Split-Path: C:\Users\eidswe\scoop\apps\scoop\current\libexec\scoop-search.ps1:30
Line |
30 | $fname = Split-Path $exe -Leaf -ErrorAction Stop
| ~~~~
| Cannot bind argument to parameter 'Path' because it is null.
Split-Path: C:\Users\eidswe\scoop\apps\scoop\current\libexec\scoop-search.ps1:30
Line |
30 | $fname = Split-Path $exe -Leaf -ErrorAction Stop
| ~~~~
| Cannot bind argument to parameter 'Path' because it is null.
Split-Path: C:\Users\eidswe\scoop\apps\scoop\current\libexec\scoop-search.ps1:30
Line |
30 | $fname = Split-Path $exe -Leaf -ErrorAction Stop
| ~~~~
| Cannot bind argument to parameter 'Path' because it is null.
Split-Path: C:\Users\eidswe\scoop\apps\scoop\current\libexec\scoop-search.ps1:30
Line |
30 | $fname = Split-Path $exe -Leaf -ErrorAction Stop
| ~~~~
| Cannot bind argument to parameter 'Path' because it is null.
Results from local buckets...

Name Version Source Binaries


7zip-aoks 22.01 DEV-Tools
7zip-beta 22.01 DEV-Tools
7zip-extra 2201 DEV-Tools
7Zip-Install 22.01 DEV-Tools
7zip-lzma 2201 DEV-Tools
7zip-nsis 22.01 DEV-Tools
7zip-zs 21.03-v1.5.0-R2 DEV-Tools
7zip-zstd-sdu 21.03-v1.5.0-R2 DEV-Tools
7zip-zstd v21.03-v1.5.0-R2 DEV-Tools
7zip 22.01 DEV-Tools
[email protected] 16.04 DEV-Tools
[email protected] 18.05 DEV-Tools
[email protected] 19.00 DEV-Tools
[email protected]+zs 21.02+zs DEV-Tools
[email protected]+zs 21.03+zs DEV-Tools
[email protected] 9.38 DEV-Tools
7zip19.00-helper 19.00 DEV-Tools
7ZipBeta-Portable 22.01 DEV-Tools
7ztm 2.1.1 DEV-Tools
asar7z 1.4 DEV-Tools
modern7z-aoks 1.8.10 DEV-Tools
modern7z 1.8.10 DEV-Tools
nanazip-portable 2.0.450 DEV-Tools 7z | 7zG
nanazip 2.0.450 DEV-Tools 7z | 7zG
7ztm 2.1.1 extras
asar7z 1.4 extras
7zip 22.01 main
7zip19.00-helper 19.00 main
modern7z 1.8.10 main
nanazip 2.0.450 main 7z | 7zG
7ztm 2.1.1 seumsc_scoop-seu
7zip-beta 22.01 versions
7zip-zstd v21.03-v1.5.0-R2 versions

Installed PowerShell 7.3.1 instead, uninstalled scoop and reinstalled, error message unchanged.

@anderlli0053
Copy link
Owner

@eidswe Thanks for reporting back,

There must be something wrong with your Scoop installation, as the buckets don't have no direct impact on Scoop files, i really don't see what and how is this connected to my bucket repository in any way,

As i can see that error is caused by the Scoop script on the line 30 --> C:\Users\eidswe\scoop\apps\scoop\current\libexec\scoop-search.ps1:30 which is the function about "bin-ing" the executables.

--> The script defines a function called "bin_match" that takes two parameters, "$manifest" and "$query". It first checks if the "$manifest" object has a "bin" property, and if not, it returns $false. If it does, it creates an array called "$bins" that iterates through each object in the "bin" property and performs several operations on each one. It assigns variables "$exe", "$alias", and "$args" to the current object in the iteration, and assigns the name of the file (without the path) to the variable "$fname" using the "Split-Path" cmdlet. Then it checks if the name of the file without the extension match the "$query" using the "strip_ext" function and the "-match" operator. If it matches, it adds the "$fname" to the "$bins" array. If the "$alias" matches the "$query", it adds the "$alias" to the "$bins" array. After the iteration is complete, if "$bins" array is not empty, it returns the "$bins" array, otherwise it returns $false.

Try to write this into the console scoop checkup , if it doesn't work go forward to this ...... --> and after mentioning that the Scoop update function call doesn't work, there is definitely something wrong with your Scoop installation! Look here - you need to run both scoop uninstall scoop && del .\scoop -Force (If it doesn't work, run the console as an administrator!)

If you continue with the forementioned uninstallation and reinstallation of the Scoop you will also lose all your programs that you have installed, so i suggest that you create a backup manifest file with the command: scoop export > C:\Users\eidswe\Desktop\ScoopBackup.json (also here is the same.. if you get the error like " Out-File: Access to the path 'C:\Users\ander\Desktop' is denied. " just run the console with elevated privileges - administrator!)

To reinstall the Scoop run Set-ExecutionPolicy RemoteSigned -Scope CurrentUser && irm get.scoop.sh | iex in the newer PowerShell (if it doesn't work, run the console as an admin!)

That JSON file is located on your Desktop and it stores the information about all the apps and the buckets that they come from, so when you reinstall the Scoop (if you choose so) you do not need to install every single app - one-by-one again.

When you did re-installed it, after you uninstalled it successfully, open the newer PowerShell again and type the following to restore the apps from the previously created backup file:

scoop import C:\Users\eidswe\Desktop\ScoopBackup.json

After the Scoop finishes with the said import and installation processes you can run scoop update && scoop update * to forcefully update everything (in case that there are some new commits, and the Scoop doesn't fetch them for some reason)

@anderlli0053
Copy link
Owner

I have also checked and re-checked my whole bucket repo again with all the possible tools, from the linters to syntaxers and none find anything worth of the error(s). So i am pretty sure that you Scoop installation is corrupted, meaning that either some Scoop files are missing or they are unreadable or overwritten and therefore corrupted.

@anderlli0053 anderlli0053 self-assigned this Jan 12, 2023
@anderlli0053 anderlli0053 added question Further information is requested other_help Help with various questions, not directly connected to this repo! labels Jan 12, 2023
@eidswe
Copy link
Author

eidswe commented Jan 13, 2023

@anderlli0053
I found it, I found the same problem from scoop's issue, the answer is the problem of this bucket,
The answer is "This is because there's a syntax error in the JSON files in your custom bucket. Fixing that will fix the error.",
And his problem description also includes this DEV bucket, and the error message is exactly the same as mine.
Original issue #5339 in Scoop:https://github.com/ScoopInstaller/Scoop/issues/5339
Also, did what you said last time, but that didn't work.

@eidswe eidswe closed this as completed Jan 13, 2023
@eidswe eidswe reopened this Jan 13, 2023
@dong-lufei
Copy link

ScoopInstaller/Scoop#5339

this is what i asked

scoop bucket rm dev-tools
Solved the problem of scoop search error, but there was a warning

# 13697 @ donglufei in E:\test [14:07:31]
$ scoop search nodejs
WARN  Error parsing JSON at D:\scoop_user_apps\buckets\scoop\UltraSearch.json.
WARN  Error parsing JSON at D:\scoop_user_apps\buckets\scoop\TODO\Citrio.json.
Results from local buckets...

Name       Version  Source   Binaries
----       -------  ------   --------
nodejs-lts 18.13.0  main
nodejs     19.4.0   main
nodejs010  0.10.48  versions
nodejs012  0.12.18  versions
nodejs10   10.24.1  versions
nodejs11   11.15.0  versions
nodejs12   12.22.12 versions
nodejs14   14.21.2  versions
nodejs16   16.19.0  versions
nodejs18   18.13.0  versions
nodejs4    4.9.1    versions
nodejs5    5.12.0   versions
nodejs6    6.17.1   versions
nodejs7    7.10.1   versions
nodejs8    8.17.0   versions
nodejs9    9.11.2   versions


# 13697 @ donglufei in E:\test [14:08:03]

@eidswe
Copy link
Author

eidswe commented Jan 13, 2023

@dong-lufei
Yes, deleting the bucket does solve the problem, but then the bucket cannot be used. This should also show that the problem is on the DEV bucket.
I just tried a temporary solution, which is to use scoop-search instead of the search command that comes with scoop, and no error is displayed, but I am not sure whether this problem has really been solved?
Is it just hiding the problem? Or is there some effect that has not been discovered, such as not being able to search for some packages, etc.?
Still hoping to find out what the problem is.

@dong-lufei
Copy link

https://github.com/anderlli0053/DEV-tools What file or syntax of this bucket causes scoop search to report red, hopefully can be solved. Although scoop search can find the app results, it will report red before finding, and the search speed is slow

@anderlli0053 anderlli0053 unpinned this issue Jan 13, 2023
@anderlli0053 anderlli0053 added the help wanted Extra attention is needed label Jan 13, 2023
@anderlli0053
Copy link
Owner

II'll take a closer look into this; to try and figure out what's causing this, as all the tools for the bucket checkup report that is nothing wrong.. but there apparently is, since both of you @dong-lufei and @eidswe reported basically the same thing/issue

@anderlli0053
Copy link
Owner

also... does this happen for the manifests in "bucket" directory/folder only or also in other dirs of this repo?

@anderlli0053
Copy link
Owner

anderlli0053 commented Jan 13, 2023

For the life of me i cannot replicate any error , that is on 3 different computers running Windows 10 and 11... AKA scoop search 7z , ...

Files listed here appear to be OK:

7zip-aoks 22.01 DEV-Tools
7zip-beta 22.01 DEV-Tools
7zip-extra 2201 DEV-Tools
7Zip-Install 22.01 DEV-Tools
7zip-lzma 2201 DEV-Tools
7zip-nsis 22.01 DEV-Tools
7zip-zs 21.03-v1.5.0-R2 DEV-Tools
7zip-zstd-sdu 21.03-v1.5.0-R2 DEV-Tools
7zip-zstd v21.03-v1.5.0-R2 DEV-Tools
7zip 22.01 DEV-Tools
7zip19.00-helper 19.00 DEV-Tools
[email protected] 16.04 DEV-Tools
[email protected] 18.05 DEV-Tools
[email protected] 19.00 DEV-Tools
[email protected]+zs 21.02+zs DEV-Tools
[email protected]+zs 21.03+zs DEV-Tools
[email protected] 9.38 DEV-Tools
7ZipBeta-Portable 22.01 DEV-Tools
7ztm 2.1.1 DEV-Tools
asar7z 1.4 DEV-Tools
modern7z-aoks 1.8.10 DEV-Tools
modern7z 1.8.10 DEV-Tools

@anderlli0053
Copy link
Owner

@dong-lufei @eidswe Can y'all confirm if the issue(s) persist?

@eidswe
Copy link
Author

eidswe commented Jan 20, 2023

@anderlli0053
Yes, the phenomenon has not changed from the above. But now I use scoop-search to avoid the problem display.

The current problem is as follows:

PowerShell 7.3.1
PS C:\Users\eidswe> scoop search 7z
Split-Path: C:\Users\eidswe\scoop\apps\scoop\current\libexec\scoop-search.ps1:30
Line |
30 | $fname = Split-Path $exe -Leaf -ErrorAction Stop
| ~~~~
| Cannot bind argument to parameter 'Path' because it is null.
Split-Path: C:\Users\eidswe\scoop\apps\scoop\current\libexec\scoop-search.ps1:30
Line |
30 | $fname = Split-Path $exe -Leaf -ErrorAction Stop
| ~~~~
| Cannot bind argument to parameter 'Path' because it is null.
Split-Path: C:\Users\eidswe\scoop\apps\scoop\current\libexec\scoop-search.ps1:30
Line |
30 | $fname = Split-Path $exe -Leaf -ErrorAction Stop
| ~~~~
| Cannot bind argument to parameter 'Path' because it is null.
Split-Path: C:\Users\eidswe\scoop\apps\scoop\current\libexec\scoop-search.ps1:30
Line |
30 | $fname = Split-Path $exe -Leaf -ErrorAction Stop
| ~~~~
| Cannot bind argument to parameter 'Path' because it is null.
Results from local buckets...

Name Version Source Binaries

7zip-aoks 22.01 DEV-Tools
7zip-beta 22.01 DEV-Tools
7zip-extra 2201 DEV-Tools
7Zip-Install 22.01 DEV-Tools
7zip-lzma 2201 DEV-Tools
7zip-nsis 22.01 DEV-Tools
7zip-zs 22.01-v1.5.2-R1 DEV-Tools
7zip-zstd-sdu 21.03-v1.5.0-R2 DEV-Tools
7zip-zstd v22.01-v1.5.2-R1 DEV-Tools
7zip 22.01 DEV-Tools
[email protected] 16.04 DEV-Tools
[email protected] 18.05 DEV-Tools
[email protected] 19.00 DEV-Tools
[email protected]+zs 21.02+zs DEV-Tools
[email protected]+zs 21.03+zs DEV-Tools
[email protected] 9.38 DEV-Tools
7zip19.00-helper 19.00 DEV-Tools
7ZipBeta-Portable 22.01 DEV-Tools
7ztm 2.1.1 DEV-Tools
asar7z 1.4 DEV-Tools
modern7z-aoks 1.8.10 DEV-Tools
modern7z 1.8.10 DEV-Tools
nanazip-portable 2.0.450 DEV-Tools 7z | 7zG
nanazip 2.0.450 DEV-Tools 7z | 7zG
7ztm 2.1.1 extras
asar7z 1.4 extras
7zip 22.01 main
7zip19.00-helper 19.00 main
modern7z 1.8.10 main
nanazip 2.0.450 main 7z | 7zG
7ztm 2.1.1 seumsc_scoop-seu
7zip-beta 22.01 versions
7zip-zstd v22.01-v1.5.2-R1 versions

When I use scoop-search:

PowerShell 7.3.1
PS C:\Users\eidswe> scoop search 7z
'DEV-Tools' bucket:
7zip (22.01)
7zip19.00-helper (19.00)
[email protected] (16.04)
[email protected] (18.05)
[email protected] (19.00)
[email protected]+zs (21.02+zs)
[email protected]+zs (21.03+zs)
[email protected] (9.38)
7zip-aoks (22.01)
7zip-beta (22.01)
7ZipBeta-Portable (22.01)
7zip-extra (2201)
7Zip-Install (22.01)
7zip-lzma (2201)
7zip-nsis (22.01)
7zip-zs (22.01-v1.5.2-R1)
7zip-zstd (v22.01-v1.5.2-R1)
7zip-zstd-sdu (21.03-v1.5.0-R2)
7ztm (2.1.1)
asar7z (1.4)
modern7z (1.8.10)
modern7z-aoks (1.8.10)
nanazip (2.0.450) --> includes '7z'
nanazip-portable (2.0.450) --> includes '7z'

'extras' bucket:
7ztm (2.1.1)
asar7z (1.4)

'main' bucket:
7zip (22.01)
7zip19.00-helper (19.00)
modern7z (1.8.10)
nanazip (2.0.450) --> includes '7z'

'seumsc_scoop-seu' bucket:
7ztm (2.1.1)

'versions' bucket:
7zip-beta (22.01)
7zip-zstd (v22.01-v1.5.2-R1)

@larsmartens
Copy link

@anderlli0053 , the cause of the issue is the comments in the app manifest JSONs that are mentioned in the error output (duplicati, gcc etc.).

No idea why it causes problems for some and not for others, but if you remove the comments from the JSONs - or use another way to include the information in the JSON - the issue disappears.

@anderlli0053
Copy link
Owner

Do these files still have this problem??

7zip-aoks 22.01 DEV-Tools
7zip-beta 22.01 DEV-Tools
7zip-extra 2201 DEV-Tools
7Zip-Install 22.01 DEV-Tools
7zip-lzma 2201 DEV-Tools
7zip-nsis 22.01 DEV-Tools
7zip-zs 22.01-v1.5.2-R1 DEV-Tools
7zip-zstd-sdu 21.03-v1.5.0-R2 DEV-Tools
7zip-zstd v22.01-v1.5.2-R1 DEV-Tools
7zip 22.01 DEV-Tools
[email protected] 16.04 DEV-Tools
[email protected] 18.05 DEV-Tools
[email protected] 19.00 DEV-Tools
[email protected]+zs 21.02+zs DEV-Tools
[email protected]+zs 21.03+zs DEV-Tools
[email protected] 9.38 DEV-Tools
7zip19.00-helper 19.00 DEV-Tools
7ZipBeta-Portable 22.01 DEV-Tools
7ztm 2.1.1 DEV-Tools
asar7z 1.4 DEV-Tools
modern7z-aoks 1.8.10 DEV-Tools
modern7z 1.8.10 DEV-Tools
nanazip-portable 2.0.450 DEV-Tools 7z | 7zG
nanazip 2.0.450 DEV-Tools 7z | 7zG

any new manifest that has this too??

@anderlli0053 anderlli0053 pinned this issue Apr 30, 2023
@TC-Mits-Qine
Copy link

The same problem was encountered.

PowerShell 7.3.4
Loading personal and system profiles took 2204ms.
 Qine  $psversiontable

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

 Qine  scoop checkup
No problems identified!
 Qine  scoop search 7z
Split-Path: C:\Users\Qine\scoop\apps\scoop\current\libexec\scoop-search.ps1:30
Line |
  30 |          $fname = Split-Path $exe -Leaf -ErrorAction Stop
     |                              ~~~~
     | Cannot bind argument to parameter 'Path' because it is null.
Split-Path: C:\Users\Qine\scoop\apps\scoop\current\libexec\scoop-search.ps1:30
Line |
  30 |          $fname = Split-Path $exe -Leaf -ErrorAction Stop
     |                              ~~~~
     | Cannot bind argument to parameter 'Path' because it is null.

In addition, when updating applications in this bucket, the following problems are encountered:

 Qine  scoop update *
esearch: 1.9.7 -> 1.10.0
KiCad: 7.0.2 -> 7.0.5
oh-my-posh: 16.9.1 -> 17.0.0
openssl: 3.1.0 -> 3.1.1
pandoc: 3.1.2 -> 3.1.3
Updating 5 outdated apps:
Updating 'esearch' (1.9.7 -> 1.10.0)
Downloading new version
OperationStopped: C:\Users\Qine\scoop\apps\scoop\current\lib\install.ps1:111
Line |
 111 |          throw $e
     |          ~~~~~~~~
     | Response status code does not indicate success: 401 (Unauthorized).

It is not clear if the two are related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed other_help Help with various questions, not directly connected to this repo! question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants