Skip to content
Permalink
Browse files
[BUGFIX][Processing] updateAlgsList
  • Loading branch information
rldhont committed Apr 5, 2018
1 parent 1766269 commit c83261395476b62f67eace32c78460bdcfd79a8f
Showing 1 changed file with 1 addition and 1 deletion.
@@ -181,7 +181,7 @@ def updateAlgsList():
"""
QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
for p in Processing.providers:
Processing.reloadProvider(p)
Processing.reloadProvider(p.getName())
QApplication.restoreOverrideCursor()

@staticmethod

4 comments on commit c832613

@gioman
Copy link
Contributor

@gioman gioman commented on c832613 May 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rldhont Hi, this commit broke Processing configuration panel in 2.18.19: when clicking "ok" it generates an endless python error.

Traceback (most recent call last):
  File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\gui\ProcessingToolbox.py",
line 163, in updateProvider
    item.refresh()
  File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\gui\ProcessingToolbox.py",
line 377, in refresh
    Processing.updateAlgsList()
  File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\core\Processing.py",
line 184, in updateAlgsList
    Processing.reloadProvider(p.getName())
  File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\core\Processing.py",
line 189, in reloadProvider
    algList.reloadProvider(providerName)
  File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\core\alglist.py",
line 55, in reloadProvider
    p.loadAlgorithms()
  File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\core\AlgorithmProvider.py",
line 56, in loadAlgorithms
    self._loadAlgorithms()
  File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\modeler\ModelerAlgorithmProvider.py",
line 73, in _loadAlgorithms
    folders = ModelerUtils.modelsFolders()
  File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\modeler\ModelerUtils.py",
line 46, in modelsFolders
    folder = ProcessingConfig.getSetting(ModelerUtils.MODELS_FOLDER)
  File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\core\ProcessingConfig.py",
line 209, in getSetting
    if name in ProcessingConfig.settings.keys():
RuntimeError: maximum recursion depth exceeded in cmp

@jonnyforestGIS
Copy link
Contributor

@jonnyforestGIS jonnyforestGIS commented on c832613 May 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi i confirm this behavior.

Cheers
João

@borysiasty
Copy link
Member

@borysiasty borysiasty commented on c832613 May 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rldhont
Copy link
Contributor Author

@rldhont rldhont commented on c832613 May 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed here d8e39fa

Please sign in to comment.