[QGIS-trac] Re: [Quantum GIS] #3145: Dash in plugin name causes
unhelpful error message
Quantum GIS
qgis at qgis.org
Thu Oct 21 16:24:38 EDT 2010
#3145: Dash in plugin name causes unhelpful error message
------------------------------------------------+---------------------------
Reporter: rehakv1 | Owner: borysiasty
Type: bug | Status: new
Priority: major: does not work as expected | Milestone: Version 1.6.0
Component: Python plugins and bindings | Version: Trunk
Keywords: | Platform_version:
Platform: All | Must_fix: No
Status_info: 0 |
------------------------------------------------+---------------------------
Comment(by brushtyler):
Replying to [ticket:3145 rehakv1]:
> I encountered a problem with using a '-' sign (dash) in python plugin in
1.6 r14423. When I add my custom repository
(http://www.tarsiusproject.org/qgis/plugins.xml) and try to install plugin
called 'Dash Test' which contains 'dash-test' directory in 'dash-
test.zip', QGIS raises error message that reads:
>
> "The plugin is broken. Python said:
> invalid syntax"
You should rename your plugin folder and package to "dash_test" because
the chars after the dash in the package name are used for release name or
version (e.g "dash_test-dev.zip" or "dash_test-1.0.zip").Instead the
folder name must be truncated before the dash (i.e. "dash_test" in both
the above cases).
> If there is a technical reason for prohibiting dash in the plugin folder
I think QGIS should emit more descriptive error message.
The error message is for users, not for developers. IMHO users don't want
to know why the package is broken.
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/3145#comment:1>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list