← Back to issue list

Commands cannot always load projects with advanced grammar

View original Github issue

Metadata

Project
craft-application
Number
#261
Type
issue
State
open
Author
mr-cal
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action: keep open

Reason: The issue is a real bug reported by a maintainer with a concrete failing CI example (snapcraft core24 grammar spread test) and a proposed direction (load only some project items), but it has no labels, no assignee, and no maintainer acknowledgement beyond the Jira sync bot (CRAFT-2596). Current ProjectService.configure() still requires platform/build-for resolution before grammar processing, so the problem appears unresolved. It should stay open pending triage/implementation.

Impact: 55 Quick Win: 19.25 Staleness: 78 Complexity: 65 Confidence: 70 Support Request: 10

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
qwen/qwen3.8-27b
Impact: 55
Quick Win: 19.25
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.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 65
Confidence: 70
Support Request: 10
needs triage Commands fail to parse projects with advanced grammar without build-for or platform arguments. Proposed fix selectively loads project items. Open issue, tracked as Jira CRAFT-2596, awaiting assignment.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/snapcraft#4630 (confidence 85%)

    Issue cites that PR comment as the source of the problem.

  • Related To: craft-application#279 (confidence 60%)

    Commit 'feat: always process the project's grammar' is the area this issue targets.

Related issues

No related issues found above the similarity threshold.