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

[Bug] Creating an app manifest #5718

Closed
octaviordz opened this issue Nov 7, 2023 · 3 comments
Closed

[Bug] Creating an app manifest #5718

octaviordz opened this issue Nov 7, 2023 · 3 comments
Labels
bug waiting feedback Waiting for user feedback

Comments

@octaviordz
Copy link

Bug Report

I tried to follow the instructions from a-basic-example yet it's not working for me.

Current Behavior

When trying to do scoop install hello I get a couple of warnings:

WARN  Error parsing JSON at C:\Users\REDACTED\source\repos\scoop-hello\hello.json.
WARN  Bucket 'C:\Users\REDACTED\source\repos\scoop-hello\hello.json' not installed. Add it with 'scoop bucket add C:\Users\REDACTED\source\repos\scoop-hello\hello.json' or 'scoop bucket add C:\Users\REDACTED\source\repos\scoop-hello\hello.json <repo>'.
Couldn't find manifest for 'hello' from 'C:\Users\REDACTED\source\repos\scoop-hello\hello.json' bucket.

Expected Behavior

The 'hello' app is installed.

Additional context/output

As I was writing this issue I found out what is/was causing the problem it was the encoding of hello.json file, when doing
'{ "version": "1.0", "url": "https://gist.github.com/lukesampson/6446238/raw/hello.ps1", "bin": "hello.ps1" }' > hello.json the result hello.json files has encoding UTF-16 LE, as reported by VSCode. After saving the same file with UTF-8 then it works as expected. My question is now it UTF-8 the only supported encoding?

Possible Solution

System details

Windows version: [e.g. 7, 8, 10, 11]
Windows 10

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

PowerShell version: [output of "$($PSVersionTable.PSVersion)"]

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      19041  3570

Additional software: [(optional) e.g. ConEmu, Git]
Windows Terminal 1.18.2822.0
git version 2.42.0.windows.2

Scoop Configuration

{
    "last_update":  "2023-11-07T13:13:41.1231860-07:00",
    "scoop_branch":  "master",
    "scoop_repo":  "https://github.com/ScoopInstaller/Scoop"
}
@octaviordz octaviordz added the bug label Nov 7, 2023
@PatoMarin
Copy link

PatoMarin commented Nov 12, 2023

I'm having the same issue, the message also shows when " scoop search xxxx".

Similar system, same architecture, win10

@HUMORCE
Copy link
Member

HUMORCE commented Jan 14, 2024

WARN Error parsing JSON at C:\Users\REDACTED\source\repos\scoop-hello\hello.json.
WARN Bucket 'C:\Users\REDACTED\source\repos\scoop-hello\hello.json' not installed. Add it with 'scoop bucket add C:\Users\REDACTED\source\repos\scoop-hello\hello.json' or 'scoop bucket add C:\Users\REDACTED\source\repos\scoop-hello\hello.json '.
Couldn't find manifest for 'hello' from 'C:\Users\REDACTED\source\repos\scoop-hello\hello.json' bucket.

  • You added a wrong path as bucket
  • A manifest named 'hello' was created with wrong JSON syntax

See also:

My question is now it UTF-8 the only supported encoding?

No, but Scoop expects input to be UTF-8 encoded. https://github.com/ScoopInstaller/Scoop/blob/master/.editorconfig

I'm having the same issue, the message also shows when " scoop search xxxx".

Added buckets contain incorrect manifests.

@HUMORCE HUMORCE added the waiting feedback Waiting for user feedback label Jan 14, 2024
@z3non
Copy link

z3non commented Jul 9, 2024

Scoop expects input to be UTF8 encoded without BOM. Powershell before version 7 create by default UTF-16 LE with BOM, so the tutorial breaks for these with this error message:

WARN  Error parsing JSON at 'C:\work\scoop-hello\hello.json'.
WARN  Bucket 'C:\work\scoop-hello\hello.json' not added. Add it with 'scoop bucket add C:\work\scoop-hello\hello.json <repo>'.
Couldn't find manifest for 'hello' from 'C:\work\scoop-hello\hello.json' bucket.

The command

scoop install hello

as instructed on the wiki page does not work, it requires the absolute or relative path of the json manifest, e.g.:

scoop install .\hello.json

would be nice to have a smooth experience in the hello world example to attract more contributors to this magnificent ecosystem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug waiting feedback Waiting for user feedback
Projects
None yet
Development

No branches or pull requests

5 participants