Bug report #17649

Create script collection plugin produces an error if there are any user scripts

Added by Matt Yoder 5 days ago.

Status:Open
Priority:Normal
Assignee:Victor Olaya
Category:Processing/Core
Affected QGIS version:master Regression?:No
Operating System:macOS 10.13.1 Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No

Description

The "Create script collection plugin" tool opens as expected if there are no user scripts. However, after adding a script using "Create new script," opening "Create script collection plugin" produces this error message:

File "/usr/local/Cellar/qgis3-dev/2.99/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/gui/ProcessingToolbox.py", line 314, in executeAlgorithm
  action.execute()
File "/usr/local/Cellar/qgis3-dev/2.99/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/script/CreateScriptCollectionPluginAction.py", line 84, in execute
  dlg = ScriptSelector()
File "/usr/local/Cellar/qgis3-dev/2.99/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/script/ScriptSelector.py", line 62, in __init__
  scriptItem.setText(0, script.name)
TypeError: setText(self, int, str): argument 2 has unexpected type 'method'

Also available in: Atom PDF