missing format in the error when defining a part that doesn't exist
Metadata
Current evaluation
Fixed undefined-part error formatting in snapcore/snapcraft PR #1036, merged as commit 3350d3b05; the error now substitutes the part name correctly.
Resolution: closed resolved
Reason: The closing comment links to snapcore/snapcraft PR #1036, which merged as commit 3350d3b05 with the descriptive title “parts: better error message when defining parts.”
Evaluated by: mr-cal-bot
No scores available.
Issue body
$ snapcraft define idontexist
Cannot find the part name {!r} in the cache. Please consider going to https://wiki.ubuntu.com/snapcraft/parts to add it.
The {!r} needs to be fixed.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed undefined-part error formatting in snapcore/snapcraft PR #1036, merged as commit 3350d3b05; the error now substitutes the part name correctly. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed undefined-part error formatting by merging PR #1036 (commit 3350d3b05), which replaced the literal {!r} placeholder with the missing part name. | |
| stealth/space-bunny-alpha | — | closed resolved | The missing-part error was corrected to render the requested part name, fixing the exposed {!r} formatting placeholder. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed by correcting the missing format specifier in the error message for non-existent parts. The issue was closed after the bug was resolved. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed unformatted error message that displayed literal {!r} instead of the missing part name when running snapcraft define. Resolved by applying proper string formatting to the error output. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed the missing format string in the error message displayed when defining a non-existent snapcraft part. The {!r} placeholder was replaced with the correct string interpolation syntax. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Fixed a string formatting bug in the snapcraft CLI error message where the placeholder {!r} was not replaced with the missing part name. The issue was closed after the correction. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcore/snapcraft#1036
(confidence 99%)
The maintainer directly linked this PR, which corrected the missing format placeholder in the undefined-part error.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #541 Improve the error message when a part binary is not found. | snapcraft | merged | Merged canonical/snapcraft#541 via commit e76d91142, improving errors when a part binary cannot be found and resolving LP #1582367. |