snapcraft overwrites log file names on error
Metadata
Current evaluation
snapcraft error messages overwrite log file paths on terminal, making them hard to copy
Suggested action: needs triage
Reason: The issue has no labels, no maintainer response, and 0 comments. It describes a real UX bug where error messages with end_line=True overwrite log file paths in craft-cli, but needs maintainer assessment to determine priority and whether the behavior is still present in current versions.
Impact:
50
Quick Win:
35.0
Staleness:
85
Complexity:
30
Confidence:
60
Support Request:
40
Issue body
snapcraft 8.0.2 from the stable channel.
The newer versions of snapcraft print output on one line, updating rather than scrolling.
When a part (such as an override-build snippet) fails, the log file is displayed, but snapcraft then overwrites that line. So it's not possible to easily copy/paste the log file in order to display it:
alan@nuc:~/Source/popey/spectrum-analyser-snap$ snapcraft --use-lxd
'override-build' in part 'spectrum-analyser' failed with code 1.lyser/build/8BitAnalysers/Source/ZXSpectrum/build/CMakeFiles/CMakeOutput.log".
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.
Full execution log: '/home/alan/.local/state/snapcraft/log/snapcraft-20240209-115359.161950.log'
Note the CMakeOutput.log path is shown as:
'override-build' in part 'spectrum-analyser' failed with code 1.lyser/build/8BitAnalysers/Source/ZXSpectrum/build/CMakeFiles/CMakeOutput.log".
It likely should be:
'override-build' in part 'spectrum-analyser' failed with code 1
project/parts/spectrum-analyser/build/8BitAnalysers/Source/ZXSpectrum/build/CMakeFiles/CMakeOutput.log".
Steps to reproduce:
A simple part, which will fail due to a missing build-package.
spectrum-analyser:
plugin: nil
override-build: |
git clone --recursive https://github.com/TheGoodDoktor/8BitAnalysers
cd 8BitAnalysers/Source/ZXSpectrum
mkdir build
cd build
/usr/bin/cmake ..
make
build-packages:
- build-essential
- cmake
- libgl-dev
- libx11-dev
- libxrandr-dev
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
50
Quick Win:
35.0
Staleness:
85
Complexity:
30
Confidence:
60
Support Request:
40
|
needs triage | snapcraft error messages overwrite log file paths on terminal, making them hard to copy | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
15
Confidence:
85
Support Request:
0
|
needs triage | Terminal output overwrites log file paths on build failure, making them unreadable. Unlabeled, no maintainer response, inactive for ~2.4 years. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
30
Confidence:
85
Support Request:
5
|
close stale | Bug in snapcraft where terminal output overwrites the displayed log file path on build failure, preventing easy copying. Unlabelled, no maintainer response, inactive for ~2.4 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
15
Confidence:
85
Support Request:
5
|
close stale | Bug in snapcraft where terminal output overwrites the displayed log file path on build failure, preventing easy copy-pasting. Unlabelled, no maintainer response, inactive for over two years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
20
Confidence:
80
Support Request:
5
|
close stale | Terminal output overwrites log file path on build failure in snapcraft v8.0.2, preventing easy copy/paste. Unattended for 863 days with no maintainer response. |
Update history
No update history recorded yet.
Related issues
No related issues found above the similarity threshold.