- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 19
Plugin name with spaces are not well detected by QGIS #22
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
Comments
I would suggest to try renaming your src folder accordingly by replacing underscore by dashes? that would be an easy fix. I don't think this is related to the filename in the XML. |
Well, we have many plugins with underscore and I think underscore is better :) I have checked, you have plugins with underscore as well:
I haven't checked in QGIS code, but changing from <file_name>veloroutes-voies-vertes.0.2.0.zip</file_name>
<download_url>https://URL/veloroutes-voies-vertes.0.2.0.zip</download_url> to <file_name>veloroutes_voies_vertes.0.2.0.zip</file_name>
<download_url>https://URL/veloroutes-voies-vertes.0.2.0.zip</download_url> fixes the issue. (only updating I just made a quick PR to have a better error message in QGIS : qgis/QGIS#38153 |
I confirm QGIS can update a plugin by changing |
I don't use the custom repo for this, I push directly to the official plugin repo. Actually, I think that the file name is very bad handled in QGIS (putting a dash in front of the version number actually leads to the same error). So it's very well possible that we cannot have dashes at all in the file name. Can you PR to simple replace dashes by underscores for the XML? How does that sound to you? |
Actually, I like this comment
Yes, sure ;-) Fine for me of course. |
We have a few plugins with a space in their name.
When using the
plugins.xml
generated by the plugin, we are noticing that QGIS is confused about the name.For instance, we have this plugin https://github.com/3liz/qgis-veloroutes_voies_vertes-plugin
The plugin is named/located in the
veloroutes_voies_vertes
directory.The plugins.xml generated by qgis-plugin-ci will have:
When I install it using the
plugins.xml
, QGIS will be confused because QGIS will extract the folder withveloroutes_voies_vertes
while QGIS will look for a folderveloroutes-voies-vertes
. A warning is raised in the plugin manager saying that the plugin went somewhere but not in the correct directory (because the folderveloroutes-voies-vertes
does not exist after extraction).Don't you have this issue too?
The
filename
parameter in the plugins.xml should be filled with the correct plugin name IMHO.The text was updated successfully, but these errors were encountered: