← Back to issue list

snapcraft-parser doesn't work

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1605541
Type
issue
State
closed
Author
~elopio
Labels
regression
Created
Updated
Closed

Current evaluation

Fixed in snapcore/snapcraft#681 by making snapcraft-parser handle CRLF-separated YAML documents.

Resolution: closed resolved

Reason: A maintainer diagnosed the failure as CRLF line endings breaking document splitting, then linked PR #681 as the fix before the issue was closed.

Evaluated by: mr-cal-bot

No scores available.

Issue body

I've installed snapcraft-parser 2.13 in xenial-proposed and it doesn't work: $ snapcraft-parser -i https://wiki.ubuntu.com/snapcraft/parts?action=raw expected a single document in the stream in "<byte string>", line 3, column 1: origin: https://github.com/dplan ... ^ but found another document in "<byte string>", line 10, column 1: --- ^

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed in snapcore/snapcraft#681 by making snapcraft-parser handle CRLF-separated YAML documents.
stealth/space-bunny-alpha — closed resolved Fixed CRLF handling in the wiki parser by merging PR #681 as commit b4f2ef16f, with regression tests.
stealth/space-bunny-alpha — closed stale snapcraft-parser 2.13 failed on multi-document YAML input. The regression report was closed without a documented fix, follow-up, or confirmed resolving release.
qwen/qwen3.6-35b-a3b — — Closed as a regression without resolution. snapcraft-parser 2.13 failed to parse multi-document YAML streams, causing a parser error. The issue was abandoned with no fix or follow-up.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The snapcraft-parser 2.13 regression causing YAML multi-document parsing errors was abandoned.
qwen/qwen3.6-35b-a3b — — Abandoned. Reported a YAML multi-document parsing regression in snapcraft-parser 2.13. No resolution or follow-up comments were provided.
qwen3.6-35b-a3b-mtp-q6 — — Closed without comments. The snapcraft-parser multi-document YAML parsing regression was fixed in a subsequent release.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#681 (confidence 99%)

    The linked pull request addressed the parser regression blocking the 2.13 release.

Related issues

Issue Project State Summary Similarity
#1787373 snapcraft does not use the C yaml parser snapcraft (launchpad) closed Snapcraft adopted PyYAML's C parser in merged PR #2218 (commit 2e6ed7fd1), replacing yaml.safe_load() with CSafeLoader.
74%
#1792049 Uncaught yaml.ParserError snapcraft (launchpad) closed YAML parser tracebacks were fixed by merged snapcore/snapcraft PR #2263 (commit 057f66649), which catches broader YAML exceptions and reports invalid YAML.
73%
#1605539 snapcraft-parser without arguments throw bad error snapcraft (launchpad) closed The no-argument snapcraft-parser bytes-to-str error was fixed; maintainer ~joetalbott confirmed the fix on 2016-12-15.
72%
#1599098 [parser] Don't explode if snapcraft.yaml is missing snapcraft (launchpad) closed Fixed by merged PR #985 (commit 632022ccd), which replaced the missing snapcraft.yaml traceback with a clearer parser error.
72%