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

'winget show' errors on specific packages #825

Open
nodomw opened this issue Apr 27, 2024 · 0 comments
Open

'winget show' errors on specific packages #825

nodomw opened this issue Apr 27, 2024 · 0 comments

Comments

@nodomw
Copy link

nodomw commented Apr 27, 2024

running winget show carapace with the completions imported, returns this error:

~ λ winget show carapace
Error: nu::shell::unsupported_input

  × Unsupported input
     ╭─[<nushell-config>\nu_scripts\custom-completions\winget\winget-completions.nu:247:96]
 246 │             let header = ($lines | first | parse -r 'Found (?P<Name>.+) \[(?P<Id>.+)\]')
 247 │             let manifest = ($lines | skip | each { sanitize-line } | str join (char newline) | from yaml)
     ·                                                                                                ────┬────┬
     ·                                                                                                    │    ╰── value originates from here
     ·                                                                                                    ╰── Could not load YAML: did not find expected key at line 17 column 3, while parsing a block mapping
 248 │             $header | first | merge $manifest
     ╰────

this could be due to some packages having inconsistent formatting as this expects them to be in a specific format

some other packages this also happens with: Peppy.Osu!, flux.flux

tested on 660b55c

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

No branches or pull requests

1 participant