Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Godot can't find plugin.cfg files in addons sub-sub-folders #42572

Closed
me2beats opened this issue Oct 5, 2020 · 2 comments
Closed

Godot can't find plugin.cfg files in addons sub-sub-folders #42572

me2beats opened this issue Oct 5, 2020 · 2 comments

Comments

@me2beats
Copy link

me2beats commented Oct 5, 2020

Godot version:

3.2.3

OS/device including version:

Windows

Issue description:

I need to have my plugins in sub-sub-folders of addons/ folder.
Say addons/me2beats/a/a.gd, addons/me2beats/b/b.gd etc

One of the reasons for this may be that I would not want a conflict of plugin names with plugins from other developers.
Another reason is that there can be a lot of plugins (say, several hundred small plugins) which I'd like to logically divide into subfolders.

The issue is Godot in this case can see plugin.cfg files only in addons and addons/me2beats,
and it doesn't go deeper for some reason (maybe so Godot doesn't run recursively through all addons/ subfolders)

  • this limitation is not specified anywhere in the documentation.

  • it is possible to create plugins in addons/ sub-sub-folder with Create a plugin dialog (see below).
    The plugin file and cfg file are generated correctly, but the plugin cannot be found.

Steps to reproduce:

  • Create a plugin with Create a Plugin (Project - Project settings - Plugins - Create a Plugin),
  • in Subfolder field specify sub-sub-folder using / for example a/b or sub/subsub.
  • As you will see, sub and sub-sub folders created, plugin.cfg and plugin.gd created too but godot doesn't see this plugin

subsubfolder

Minimal reproduction project:

@Xrayez
Copy link
Contributor

Xrayez commented Oct 6, 2020

It's likely that it's not a feature currently, but as you said, it lacks documentation, so I'd assign documentation label, and/or transfer this issue to the GIP repository, or create a new proposal. Yet I'd first check whether that's indeed a bug first.

I've just written a similar proposal for the custom_modules build option (much like addons but in C++): godotengine/godot-proposals#1619, so this could be similarly applied for the addons to add a recursive plugin search option is the editor settings, for instance.

This would facilitate the plugin sub-project proposal as well: godotengine/godot-proposals#1205.

@Calinou
Copy link
Member

Calinou commented Feb 24, 2021

This was implemented by #43734, closing.

@Calinou Calinou closed this as completed Feb 24, 2021
@Calinou Calinou added this to the 4.0 milestone Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants