Commands cannot always load projects with advanced grammar
Metadata
Current evaluation
Resolved by PR #279: commands now auto-select a build target and process advanced grammar even when build-for and platform are omitted.
Suggested action: close resolved
Reason: Current ProjectService.configure() selects a compatible platform and build-for when omitted, and render_for() always invokes grammar.process_parts(). Commit 3432cf7d (PR #279), titled "always process the project's grammar," directly implements the reported behavior.
Evaluated by: mr-cal-bot
Impact:
58
Quick Win:
26
Complexity:
52
Confidence:
97
Actionability:
94
Issue body
### What needs to get done
A command cannot parse a project with advanced grammar if no build-for or platform is provided.
Source: https://github.com/canonical/snapcraft/pull/4630#issuecomment-1988210684
As discussed as a team, this may be solved by loading only some items of the project.
### Why it needs to get done
To allow applications to apply grammar without requiring the `build_for` or `platform` arguments. See an example of the problem in snapcraft's [ google:ubuntu-24.04-64:tests/spread/core24/grammar:amd64](https://github.com/canonical/snapcraft/actions/runs/8209947752/job/22456602084#step:4:376).
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
58
Quick Win:
26
Complexity:
52
Confidence:
97
Actionability:
94
|
close resolved | Resolved by PR #279: commands now auto-select a build target and process advanced grammar even when build-for and platform are omitted. | |
| qwen/qwen3.6-35b-a3b |
Impact:
40
Quick Win:
12
Complexity:
50
Confidence:
70
Actionability:
60
|
keep open | Commands fail to load projects with advanced grammar when no build_for or platform is provided, requiring platform auto-selection logic to support grammar processing. | |
| qwen/qwen3.8-27b |
Impact:
55
Quick Win:
19
Staleness:
78
Complexity:
65
Confidence:
70
Support Request:
10
|
keep open | Commands fail to load projects using advanced grammar when no build-for or platform is provided. Open since 2024-03, no maintainer response beyond a Jira sync bot; fix approach (loading only some project items) still unimplemented. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
85
Complexity:
60
Confidence:
85
Support Request:
10
|
needs triage | Command fails to parse projects with advanced grammar when build_for or platform arguments are missing. Open since 2024, no maintainer response beyond auto-ticket sync, currently untriaged and inactive. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
60
Confidence:
80
Support Request:
10
|
close stale | Commands fail to parse projects with advanced grammar when build-for or platform arguments are omitted. Open for over two years with no maintainer follow-up or resolution. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/craft-application#279
(confidence 97%)
Commit 3432cf7d implements unconditional project grammar processing and addresses loading without explicit build-for or platform arguments.
Related issues
No related issues found above the similarity threshold.