← Back to issue list

No trace despite -d/ --debug since new CLI

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1694315
Type
issue
State
closed
Author
~kalikiana
Labels
—
Created
Updated
Closed

Current evaluation

Restored --debug tracebacks across Snapcraft; snapcore/snapcraft#1429 was superseded by #1436, which added debug support to all paths.

Resolution: closed resolved

Reason: The maintainer confirmed that snapcore/snapcraft#1429 was closed in favor of #1436, which added debug support throughout Snapcraft, including store calls.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Passing -d or --debug used to cause snapcraft to print a trace leading up to an exception in case of a problem. Without this, it's difficult to investigate problems, including unit tests.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Restored --debug tracebacks across Snapcraft; snapcore/snapcraft#1429 was superseded by #1436, which added debug support to all paths.
stealth/space-bunny-alpha — closed resolved Fixed by snapcore/snapcraft PR #1436 ("cli: properly handle exceptions"), merged as commit be340e4f7, which added a global sys.excepthook so -d/--debug prints tracebacks for all commands including store. Superseded partial PR #1429.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR snapcore/snapcraft#1436 (be340e4f7), adding global CLI exception tracing; follow-up #1495 (f09ea712c) refined traceback handling.
stealth/space-bunny-alpha — closed resolved Fixed in #1495 (commit f09ea712c): the CLI now prints exception tracebacks directly instead of re-raising from sys.excepthook.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The missing debug trace feature for the new CLI was not addressed, indicating the report was abandoned.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The -d/--debug flag no longer prints exception traces after a CLI update, hindering debugging and unit tests.

Update history

Date Change
created

Related work

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

    Replaced the partial fix in #1429 and added debug support across all paths.

  • Related To: snapcore/snapcraft#1429 (confidence 98%)

    Provided a partial fix but did not cover the store API.

Related issues

Issue Project State Summary Similarity
#1548492 Snapcraft swallows exceptions snapcraft (launchpad) closed Added a global --debug flag for tracebacks and debug logs via merged PR ubuntu-core/snapcraft#332 (commit 580c43ebc).
70%