← Back to issue list

Missing line feed in error output

View original Github issue

Metadata

Project
craft-cli
Number
#241
Type
issue
State
closed
Author
cmatsuoka
Labels
—
Created
Updated
Closed

Current evaluation

Closed as a duplicate of #263; its line-overwrite bug was fixed by merged PR #210 (c62ce3a) by removing trailing spaces in brief-mode output.

Resolution: closed superseded

Reason: The maintainer closed this report as a duplicate of #263. That duplicate was fixed by merged PR #210 in commit c62ce3a.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Bug Description Snapcraft failed with the following error message: ``` 'override-build' in part 'rockcraft' failed with code 1.ipt for part 'rockcraft'. Review the scriptlet and make sure it's correct. Failed to execute pack in instance. Recommended resolution: Run the same command again with --debug to shell into the environment if you wish to introspect this failure. ``` The first line has two overlapping messages: `error: Failed to run the build script for part 'rockcraft'.` and `'override-build' in part 'rockcraft' failed with code 1.`. ### To Reproduce Run snapcraft on a project containing an error in override-build. ### part yaml ```shell N/A ``` ### Relevant log output ```shell 2024-02-15 17:57:15.047 :: 2024-02-15 17:57:14.344 :: note: This error originates from a subprocess, and is likely not a problem with pip. 2024-02-15 17:57:15.047 :: 2024-02-15 17:57:14.405 :: error: Failed to run the build script for part 'rockcraft'. 2024-02-15 17:57:15.047 :: 2024-02-15 17:57:14.606 'override-build' in part 'rockcraft' failed with code 1. 2024-02-15 17:57:15.047 :: Review the scriptlet and make sure it's correct. ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Closed as a duplicate of #263; its line-overwrite bug was fixed by merged PR #210 (c62ce3a) by removing trailing spaces in brief-mode output.
stealth/space-bunny-alpha — closed superseded Closed as a duplicate of #263; craft-cli#263 was fixed by merged PR #210 (c62ce3a), which removes trailing spaces to prevent brief-mode error output from leaving corrupted text.
qwen/qwen3.6-35b-a3b — — Superseded as a duplicate of issue #263, where the missing line feed in error output was addressed.
qwen/qwen3.6-35b-a3b — — Closed as a duplicate of issue #263. The missing newline causing overlapping error output was already tracked in the referenced report. No separate fix applied.
qwen/qwen3.6-35b-a3b — — Closed as a duplicate of issue #263. The missing newline in error output was already tracked elsewhere, so no separate fix was applied.

Update history

No update history recorded yet.

Related work

  • Duplicate Of: canonical/craft-cli#263 (confidence 100%)

    The closing maintainer comment explicitly identifies #263 as the duplicate.

  • Likely Fixed By: canonical/craft-cli#210 (confidence 98%)

    Merged commit c62ce3a removes trailing spaces that caused brief-mode output to corrupt error messages.

Related issues

Issue Project State Summary Similarity
#263 Line overwrite causes corrupted error message craft-cli closed Fixed by merged PR #210 (c62ce3a), which strips trailing spaces so brief-mode line overwrites no longer leave stale text in error messages.
76%
#265 fix: clean ephemeral line before carriage return craft-cli closed Closed unmerged as superseded by PR #270, which fixed #263 in commit 0ca6940 by correctly printing multi-line errors.
72%