internal errors for platform string
Metadata
Current evaluation
testcraft pack crashes with AttributeError when a platform value is a string instead of a dict. The bug is still present in current code; _vectorise_platforms calls data.get() without guarding against str values.
Suggested action: keep open
Reason: The bug is confirmed still present in the current codebase: _vectorise_platforms in craft_application/services/project.py calls data.get("build-for") without checking isinstance(data, str), so a string platform value like 'my-platform: amd64' will still crash with AttributeError. The issue is labeled 'Status: Triaged' and 'Type: Bug', indicating maintainer acknowledgement. No fix commit has been found in the git history addressing this specific case. The fix is straightforward (add a str guard before calling .get()), so it should remain open for resolution.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
40
Quick Win:
32.0
Staleness:
70
Complexity:
20
Confidence:
85
Support Request:
0
|
keep open | testcraft pack crashes with AttributeError when a platform value is a string instead of a dict. The bug is still present in current code; _vectorise_platforms calls data.get() without guarding against str values. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
85
Complexity:
40
Confidence:
70
Support Request:
0
|
keep open | Internal error when platform config contains a string instead of dict. Issue is triaged as a bug, created by a maintainer, but has been inactive for over a year. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
20
Confidence:
85
Support Request:
5
|
keep open | Bug where an invalid platform configuration (string instead of dict) triggers an internal AttributeError during project parsing. Triaged but inactive for over a year. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
20
Confidence:
80
Support Request:
0
|
keep open | Internal AttributeError occurs when platform config uses a string instead of a dict. Triaged and linked to CRAFT-4539. Currently inactive and awaiting assignment or development. |
Update history
No update history recorded yet.
Related work
-
Related To:
craft-application#686
(confidence 60%)
PR #686 'fix(ProjectService): better handling for invalid platforms' addressed related platform validation issues but did not fix the str-value case that causes this AttributeError.
Related issues
No related issues found above the similarity threshold.