<p>Morning all</p>

<p>I have to migrate my plugin to the new processing API, and I'm having difficulty understanding some errors during the process. Does someone have a simple example of adding a provider and algorithm with the new API? For what it's worth, the current error is:</p>

<pre>
Traceback (most recent call last):
  File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\processing\gui\ProcessingToolbox.py", line 187, in updateProvider
    item = self._providerItem(provider.id())
  File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\processing\gui\ProcessingToolbox.py", line 204, in _providerItem
    if child.provider.id() == provider_id:
RuntimeError: wrapped C/C++ object of type qgis2webProvider has been deleted
</pre>

<p>Code is here (partially modified for QGIS3):</p>

<p>
<a href="https://github.com/tomchadwin/qgis2web/blob/master/qgis2web.py" target="_top" rel="nofollow" link="external">https://github.com/tomchadwin/qgis2web/blob/master/qgis2web.py</a><br />
<a href="https://github.com/tomchadwin/qgis2web/blob/master/qgis2webProvider.py" target="_top" rel="nofollow" link="external">https://github.com/tomchadwin/qgis2web/blob/master/qgis2webProvider.py</a><br />
<a href="https://github.com/tomchadwin/qgis2web/blob/master/qgis2webAlgorithm.py" target="_top" rel="nofollow" link="external">https://github.com/tomchadwin/qgis2web/blob/master/qgis2webAlgorithm.py</a>
</p>

<p>Thanks</p>

<p>Tom</p>

        
        
        <div class="signature" style="margin-top:1em;color:#666666;font-size:11px;">
                                <p><a href="https://www.amazon.co.uk/gp/product/B01IW69040/ref=as_li_tl?ie=UTF8&camp=1634&creative=6738&creativeASIN=B01IW69040&linkCode=as2&tag=piespyadvei0c-21" target="_top" rel="nofollow" link="external"><img src="https://images-eu.ssl-images-amazon.com/images/I/41k3x4UCk-L._AC_AC_SR98,95_.jpg" style="float: left; margin-right: 1em;" alt="Pie Spy: Adventures in British pastry 2010-11" />Buy <em>Pie Spy: Adventures in British pastry 2010-11</em> on Amazon</a></p>
                        </div>
<br/><hr align="left" width="300" />
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html">QGIS - Developer mailing list archive</a> at Nabble.com.<br/>