← Back to issue list

Help crashes if specified plugin does not exist

View original Github issue

Metadata

Project
snapcraft
Number
#13
Type
issue
State
closed
Author
sergiusens
Labels
Created
Updated
Closed

Current evaluation

Fixed an UnboundLocalError crash in snapcraft help when requesting help for a non-existent plugin. The maintainer confirmed the traceback is resolved and closed the issue.

Suggested action:

No scores available.

Issue body

daniel@daydream:~/dev/snappy/snapcraft$ ./bin/snapcraft help plugin The plugin does not exist. Use one of the following: ant autotools catkin cmake copy go jdk make maven python2 python3 qml roscore scons tar-content Traceback (most recent call last): File "./bin/snapcraft", line 33, in <module> snapcraft.main.main() File "/home/daniel/dev/snappy/snapcraft/snapcraft/main.py", line 115, in main args.func(args) File "/home/daniel/dev/snappy/snapcraft/snapcraft/help.py", line 50, in topic _module_help(args.topic, args.devel) File "/home/daniel/dev/snappy/snapcraft/snapcraft/help.py", line 68, in _module_help if module.__doc__ and devel: UnboundLocalError: local variable 'module' referenced before assignment daniel@daydream:~/dev/snappy/snapcraft$ Launchpad Details: [#LP1510954](https://bugs.launchpad.net/bugs/1510954) Daniel Holbach - 2015-10-28 11:19:12 -0300

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Fixed an UnboundLocalError crash in snapcraft help when requesting help for a non-existent plugin. The maintainer confirmed the traceback is resolved and closed the issue.
qwen/qwen3.6-35b-a3b Fixed an UnboundLocalError in snapcraft/help.py that crashed when an invalid plugin was specified. The traceback was resolved, and the command now exits cleanly with an error message instead of crashing.
qwen/qwen3.6-35b-a3b Fixed an UnboundLocalError crash in the help command when a non-existent plugin is specified. The maintainer confirmed the traceback is resolved.
qwen/qwen3.6-35b-a3b Fixed an UnboundLocalError crash in snapcraft help when a non-existent plugin was specified. The maintainer confirmed the traceback is resolved.
qwen3.6-35b-a3b-mtp-q6 Fixed an UnboundLocalError crash in the help command when specifying a non-existent plugin. The maintainer confirmed the traceback is resolved, and the issue was closed.
qwen3.6-35b-a3b-mtp-q6 Fixed an UnboundLocalError crash in snapcraft help when specifying a non-existent plugin. The maintainer confirmed the traceback is resolved and the issue is closed.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1510954 Help crashes if specified plugin does not exist snapcraft (launchpad) closed Fixed an UnboundLocalError crash when running snapcraft help with a non-existent plugin. Resolved by properly handling missing module references in help.py.
92%
#5169 snapcraft help fails on many commands snapcraft closed Fixed a crash in snapcraft help caused by missing help text for certain arguments, triggering an IndexError in craft_cli. Resolved in PR #5178 and released in snapcraft 8.5.1.
71%
#1818051 `snapcraft help ruby` fails snapcraft (launchpad) closed Closed as wontfix. Maintainers confirmed Snapcraft no longer supports help text for plugins, directing users to official documentation instead.
70%