← Back to issue list

Init command cannot render a help message

View original Github issue

Metadata

Project
craft-application
Number
#530
Type
issue
State
closed
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

Closed as stale after prerequisite canonical/craft-cli#292 was also closed without a documented implementation or resolving reference.

Resolution: closed stale

Reason: No resolving PR or commit was found in either repository. The prerequisite craft-cli#292 was closed unimplemented after prolonged inactivity, leaving the help-generation failure unresolved.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done Update craft-cli after https://github.com/canonical/craft-cli/issues/292 is completed. ### Why it needs to get done Requiring access to `self._app.name` causes `testcraft init --help` to fail. ```python def fill_parser(self, parser: argparse.ArgumentParser) -> None: parser.add_argument( "--profile", type=str, choices=self.profiles, default=self.default_profile, help=( f"Use the specified project profile (default is {self.default_profile})" f"choices are {humanize_list(self.profiles, 'and')})" ), ) @property def parent_template_dir(self) -> pathlib.Path: """Return the path to the directory that contains all templates.""" with importlib.resources.path( self._app.name, "templates" ) as _parent_template_dir: return _parent_template_dir @property def profiles(self) -> list[str]: """A list of profile names generated from template directories.""" template_dirs = [path for path in self.parent_template_dir.iterdir() if path.is_dir()] return [template.name for template in template_dirs] ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Closed as stale after prerequisite canonical/craft-cli#292 was also closed without a documented implementation or resolving reference.
stealth/space-bunny-alpha — closed stale Closed without a fix: the required craft-cli#292 application-context change was also closed unimplemented; no resolving PR or commit was found.
qwen/qwen3.6-35b-a3b — — Closed without resolution. Implementation depends on an upstream craft-cli update. No fix was merged, and tracking continues via an internal Jira ticket.
qwen/qwen3.6-35b-a3b — — Closed as blocked by upstream craft-cli issue #292. The init command help fails when accessing self._app.name. Resolution requires updating craft-cli after the upstream fix is merged.

Update history

No update history recorded yet.

Related work

  • Blocked By: canonical/craft-cli#292 (confidence 99%)

    This issue explicitly depended on craft-cli#292, which was also closed without a documented fix.

Related issues

No related issues found above the similarity threshold.