<div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>How about reloading with the "Plugin reloader" plugin [0]? You might need to enable "show experimental plugins" beforehand.</div><div>I thik this would save QGIS I/O.</div><div><br></div><div>[0] <a href="http://plugins.qgis.org/plugins/plugin_reloader/">http://plugins.qgis.org/plugins/plugin_reloader/</a></div><div><br></div><div>Regards,</div><div>Harrissou<br></div></div></div><br><div class="gmail_quote"><div dir="ltr">Le sam. 13 oct. 2018 à 10:14, Richard Duivenvoorde <<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10/12/2018 06:20 PM, Ing. Pierluigi De Rosa wrote:<br>
> Dear all,<br>
> <br>
> I have a simple problem.<br>
> I'm porting the opeNoise plugin [1] to 3.x<br>
> I'm not the author plugin but I'm experiencing that the plugin reload<br>
> fails. It tels me that the plugin have been reloaded but the changes are<br>
> non applied. Even if I deactivate and than activate the plugin the same<br>
> results (no changes detected).<br>
> The only way is to restart the software any time losing too much time.<br>
<br>
How sure are you that it is not reloaded?<br>
Can you check by writing some message with a version number?<br>
<br>
Normally writing the<br>
<br>
__init__<br>
initGui<br>
unload<br>
<br>
should be enough. Only thing I could think off is that you do not<br>
disconnect the QActions (though I'm not even sure if that is really needed).<br>
<br>
Also note that if you reload your plugin AFTER an exception, often you<br>
end up with a situation where QGIS still has (parts) of the plugin in<br>
memory while also loading a new version of your plugin, so sometimes<br>
showing 2 versions of your pluginbutton/toolbar etc. I think only a QGIS<br>
restart works then.<br>
<br>
Another think I've had is that mixing up an already installed version<br>
with the one I'm developing (because the symbolic link was gone, or I<br>
was actually working in another profile then I thought or.... other<br>
silly things)<br>
<br>
Regards,<br>
<br>
Richard<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>