iface.addvectorlayer doesn't work in processing script #27919
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
Regression
Something which used to work, but doesn't anymore
Author Name: Vincent Dionne (Vincent Dionne)
Original Redmine Issue: 20097
Affected QGIS version: 3.2.2
Redmine category:processing/core
Hello,
if you try to load a layer within a processing script using : layer = iface.addVectorLayer("path2asimpleshapefile.shp","test", "ogr").
The layer will not be added on the canvas. But the layer object will be OK.
NB: I noticed that it is working if you remove all parameter from the script !?! But it will not work if you add any parameter ( QgsProcessingParameterVectorLayer for example)
It was working fine in 2.18.
thank you,
The text was updated successfully, but these errors were encountered: