Re: [QGIS-Developer] createAlgorithmDialog in Processing script (within plugin)

2023-02-23 Thread matteo via QGIS-Developer
Just a quick update, the fix is now in master and backported: https://github.com/qgis/QGIS/issues/51971 https://github.com/qgis/QGIS/pull/51985 Thanks to all the devs! Cheers Matteo On 2/22/23 08:33, matteo wrote: Hi Richard, Not very helpful for you, but what about creating an issue with

Re: [QGIS-Developer] createAlgorithmDialog in Processing script (within plugin)

2023-02-21 Thread matteo via QGIS-Developer
Hi Richard, Not very helpful for you, but what about creating an issue with the minimal code to crash? done: https://github.com/qgis/QGIS/issues/51971 I've prepared a minimal algorithm that mimics the problem And about Thread/Crash problems: I have been succesful with the tips of Nyall in:

Re: [QGIS-Developer] createAlgorithmDialog in Processing script (within plugin)

2023-02-21 Thread Richard Duivenvoorde via QGIS-Developer
Hi Matteo, Not very helpful for you, but what about creating an issue with the minimal code to crash? And about Thread/Crash problems: I have been succesful with the tips of Nyall in: https://lists.osgeo.org/pipermail/qgis-developer/2023-February/065525.html to create a QgsTask which either

Re: [QGIS-Developer] createAlgorithmDialog in Processing script (within plugin)

2023-02-21 Thread matteo via QGIS-Developer
Hi devs, I'm raising this email again because I don't know if this a bug/limitation/correct behavior. I also think that the problem is from a thread point of view, at least by the crash that I have. Knowing that a processing algorithm, as suggested by Germàn, can be created with:

Re: [QGIS-Developer] createAlgorithmDialog in Processing script (within plugin)

2022-08-12 Thread matteo via QGIS-Developer
Hi Germàn, If you want and if you have the time, we could have a look at this issue at the QGIS Contributors Meeting in Firenze :) that's great, see you very soon! Cheers! Matteo Regards! Germán El lun, 1 ago 2022 a las 17:07, matteo (>) escribió:

Re: [QGIS-Developer] createAlgorithmDialog in Processing script (within plugin)

2022-08-11 Thread Germán Carrillo via QGIS-Developer
Hi Matteo, If you want and if you have the time, we could have a look at this issue at the QGIS Contributors Meeting in Firenze :) Regards! Germán El lun, 1 ago 2022 a las 17:07, matteo () escribió: > Hi German, > > yes in your way it is working. But what if you try not with the >

Re: [QGIS-Developer] createAlgorithmDialog in Processing script (within plugin)

2022-08-01 Thread matteo via QGIS-Developer
Hi German, yes in your way it is working. But what if you try not with the algorithm/model id, but with an instance of the algorithm? In the docs I read "Either an instance of an algorithm, or an algorithm's ID", therefore I'm trying to set up an instance of my algorithm and then passing it

Re: [QGIS-Developer] createAlgorithmDialog in Processing script (within plugin)

2022-08-01 Thread Germán Carrillo via QGIS-Developer
Hi Matteo, I've been successfully using *execAlgorithmDialog()* instead [0]: *processing.execAlgorithmDialog("my_provider:my_algorithm", params)* where, *params* is a dict with the pre-filled values you have. You can see an example at [1]. Regards, Germán --- [0]

[QGIS-Developer] createAlgorithmDialog in Processing script (within plugin)

2022-08-01 Thread matteo via QGIS-Developer
Hi all, I've a set of custom processing scripts within a plugin (that is both "normal" and processing provider plugin). I'm trying to executing the dialog of these algorithm from one of the main plugin file. I found the processing.createAlgorithmDialog [0], but it is constantly crashing