← Back to issue list

snapcraft doesn't tell me where to put the .py file for my custom plugin

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1606819
Type
issue
State
open
Author
~zyga
Labels
bitesize custom-plugin ui
Created
Updated
Closed

Current evaluation

Request for a clearer error when a custom plugin's .py file is in the wrong location; author self-resolved in an edit (file goes in parts/plugins/x_foo.py, 'plugin: x-foo'). No maintainer activity for ~8.6 years.

Suggested action: close stale

Reason: The reporter self-resolved the underlying question in an EDIT ('the plugin has to be in parts/plugins/x_foo.py and the syntax in snapcraft yams has to be plugin: x-foo'), there are 0 comments and no maintainer interaction, and last activity was ~8.6 years ago. The snapcraft 1.x-era plugin loader that produced 'unknown plugin: custom' has since been rewritten (current codebase is craft-parts based), so the specific error message and code path are no longer applicable.

Impact: 15 Quick Win: 12.75 Staleness: 95 Complexity: 15 Confidence: 65 Support Request: 45

Issue body

I'm writing a new plugin and the error message I get when the Python file is not in the right location (which I still don't know at this stage) is not very useful: $ snapcraft Searching for local plugin for custom Issue while loading plugin: unknown plugin: custom EDIT: In the end the plugin has to be in "parts/plugins/x_foo.py" and the syntax in snapcraft yams has to bee "plugin: x-foo"

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 15
Quick Win: 12.75
Staleness: 95
Complexity: 15
Confidence: 65
Support Request: 45
close stale Request for a clearer error when a custom plugin's .py file is in the wrong location; author self-resolved in an edit (file goes in parts/plugins/x_foo.py, 'plugin: x-foo'). No maintainer activity for ~8.6 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 15
Confidence: 90
Support Request: 70
close stale Request to improve snapcraft error messages when custom plugin files are misplaced. Author self-resolved the path/syntax in an edit. Issue is over 8 years inactive.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 90
Support Request: 75
close stale User reported confusing error messages when placing custom plugin files incorrectly, later self-resolved by documenting the correct path and syntax. No maintainer interaction.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 15
Confidence: 90
Support Request: 70
close stale Author reported confusing error messages for custom plugin file placement, but self-resolved the issue by documenting the correct path and syntax. The report is over nine years old with no maintainer engagement.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 10
Confidence: 95
Support Request: 25
close stale Unhelpful error message when a custom snapcraft plugin Python file is misplaced. Needs clearer guidance on file paths and YAML syntax. Unresolved with no recent activity, awaiting triage or implementation.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.