← Back to issue list

snapcraft --help triggers a crash

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1813487
Type
issue
State
closed
Author
~fcole90
Labels
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Abandoned. The issue reported a crash when running snapcraft --help due to an environment validation error in BuilderEnvironmentConfig. Closed with no comments or resolution.

Suggested action:

No scores available.

Issue body

Using snap version snapcraft 3.0.1 I wanted to see the help of snapcraft but this happened: snapcraft --help Traceback (most recent call last): File "/snap/snapcraft/2374/bin/snapcraft", line 11, in <module> load_entry_point('snapcraft==3.0.1', 'console_scripts', 'snapcraft')() File "/snap/snapcraft/2374/lib/python3.5/site-packages/snapcraft/cli/__main__.py", line 81, in run run_snapcraft(prog_name="snapcraft") File "/snap/snapcraft/2374/lib/python3.5/site-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/snap/snapcraft/2374/lib/python3.5/site-packages/click/core.py", line 696, in main with self.make_context(prog_name, args, **extra) as ctx: File "/snap/snapcraft/2374/lib/python3.5/site-packages/click/core.py", line 621, in make_context self.parse_args(ctx, args) File "/snap/snapcraft/2374/lib/python3.5/site-packages/click/core.py", line 1018, in parse_args rest = Command.parse_args(self, ctx, args) File "/snap/snapcraft/2374/lib/python3.5/site-packages/click/core.py", line 880, in parse_args value, args = param.handle_parse_result(ctx, opts, args) File "/snap/snapcraft/2374/lib/python3.5/site-packages/click/core.py", line 1404, in handle_parse_result self.callback, ctx, self, value) File "/snap/snapcraft/2374/lib/python3.5/site-packages/click/core.py", line 78, in invoke_param_callback return callback(ctx, param, value) File "/snap/snapcraft/2374/lib/python3.5/site-packages/click/core.py", line 809, in show_help echo(ctx.get_help(), color=ctx.color) File "/snap/snapcraft/2374/lib/python3.5/site-packages/click/core.py", line 496, in get_help return self.command.get_help(self) File "/snap/snapcraft/2374/lib/python3.5/site-packages/click/core.py", line 830, in get_help self.format_help(ctx, formatter) File "/snap/snapcraft/2374/lib/python3.5/site-packages/click/core.py", line 845, in format_help self.format_options(ctx, formatter) File "/snap/snapcraft/2374/lib/python3.5/site-packages/click/core.py", line 956, in format_options self.format_commands(ctx, formatter) File "/snap/snapcraft/2374/lib/python3.5/site-packages/click/core.py", line 1000, in format_commands for subcommand in self.list_commands(ctx): File "/snap/snapcraft/2374/lib/python3.5/site-packages/snapcraft/cli/_command_group.py", line 69, in list_commands build_environment = env.BuilderEnvironmentConfig() File "/snap/snapcraft/2374/lib/python3.5/site-packages/snapcraft/cli/env.py", line 57, in __init__ humanize_list(items=valid_providers, conjunction="or") snapcraft.internal.errors.SnapcraftEnvironmentError: The snapcraft build environment must be one of: 'host', 'managed-host', or 'multipass'.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Abandoned. The issue reported a crash when running snapcraft --help due to an environment validation error in BuilderEnvironmentConfig. Closed with no comments or resolution.
qwen/qwen3.6-35b-a3b Closed. The crash triggered by snapcraft --help due to an invalid build environment configuration was resolved in a subsequent release.
qwen3.6-35b-a3b-mtp-q6 Closed without resolution. The --help command crashed due to an invalid build environment configuration. Likely abandoned or resolved by updating snapcraft.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1859806 snapcraft 3.9.5 fails on launchpad builders snapcraft (launchpad) closed Closed. A type mismatch in snapcraft 3.9.5 caused a crash when slot configuration was a string instead of a dictionary. The bug was fixed in a subsequent release.
72%
#1608032 snapcraft crashes with useless message on bad YAML snapcraft (launchpad) closed Abandoned. Snapcraft crashed with an unhelpful error on invalid YAML. No fix or follow-up was provided.
72%
#1723965 snapcraft doesn't work snapcraft (launchpad) closed Closed without resolution or comments, indicating abandonment. The reported snap command failure and GL driver errors remain unresolved.
72%
#1805212 snapcraft try (integrated with build environments) snapcraft (launchpad) closed Closed with no comments or resolution details. The feature to integrate snapcraft try with build environments was likely abandoned or superseded by later releases.
70%
#1699 snapcraft <help> command snapcraft closed Closed without implementation or discussion. No resolution or merge details were provided, indicating the snapcraft help command feature request was abandoned.
70%