Snapcraft swallows exceptions
Metadata
Current evaluation
Added a global --debug flag for tracebacks and debug logs via merged PR ubuntu-core/snapcraft#332 (commit 580c43ebc).
Resolution: closed resolved
Reason: The implementation was committed as 580c43ebc and merged through PR ubuntu-core/snapcraft#332, resolving the requested backtrace and debug-log behavior.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Currently, Snapcraft has an app-wide exception handler meant to make errors a bit prettier rather than printing the backtrace. However, sometimes it's necessary to see the backtrace. Snapcraft should support the use of a --debug flag to enable both backtracing and debug logs.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Added a global --debug flag for tracebacks and debug logs via merged PR ubuntu-core/snapcraft#332 (commit 580c43ebc). | |
| stealth/space-bunny-alpha | — | closed resolved | Request for a global --debug flag resolved by merged PR #332 (commit 580c43ebc), adding -d/--debug to print exception backtraces and enable DEBUG logs; maintainer closed the issue citing that PR. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #332 (commit 580c43ebc), adding --debug to show exception backtraces and enable DEBUG logs, resolving LP #1548492. | |
| stealth/space-bunny-alpha | — | closed resolved | Added --debug to expose exception backtraces and debug logs; merged via canonical/snapcraft#332 in commit 580c43ebc. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. The request for a --debug flag to expose exception backtraces was abandoned due to inactivity. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. The request for a --debug flag to expose backtraces and debug logs was closed without implementation due to zero comments and prolonged inactivity. No resolution or code changes were applied. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
ubuntu-core/snapcraft#332
(confidence 100%)
The maintainer linked this PR as the fix, and commit 580c43ebc implements the requested --debug support.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1609803 snapcraft cleanbuild --no-clean-up | snapcraft (launchpad) | closed | Cleanbuild debugging landed in snapcore/snapcraft PR #740 (commit a24083e75); follow-up PR #1404 made --debug enter a shell when builds fail. | |
| #2185 cli: reserve the --debug option for snapcraft projects | snapcraft | merged | Merged #2185 in commit 49cf505fc, reserving --debug for snapcraft projects and moving Snapcraft's internal debug logging to the SNAPCRAFT_DEBUG environment variable. | |
| #1790455 snapcraft hides error traces | snapcraft (launchpad) | closed | Explained as configurable behavior: SNAPCRAFT_ENABLE_ERROR_REPORTING=0 or SNAPCRAFT_ENABLE_SILENT_REPORT=1 avoids prompting, while cat /tmp/*/trace.txt retrieves traces; reporter accepted the workaround. | |
| #1086 print snapcraft's version on startup when running with --debug | snapcraft | merged | PR #1086 (commit c21dc1abc) merged into master, printing Snapcraft's version banner at startup in --debug mode; fixes LP bug #1659817. Integration test expectations updated. | |
| #1659817 snapcraft does not print its version when running with --debug | snapcraft (launchpad) | closed | Snapcraft now prints its version at startup in --debug mode, fixing Launchpad #1659817 via PR #1086 (commit c21dc1abc). | |
| #1694315 No trace despite -d/ --debug since new CLI | snapcraft (launchpad) | closed | Restored --debug tracebacks across Snapcraft; snapcore/snapcraft#1429 was superseded by #1436, which added debug support to all paths. |