robotframework/RIDE

Errors of Maximum Recursion when clicking on row number in Grid editor

Closed this issue · 0 comments

We can see in the console:

RecursionError: maximum recursion depth exceeded
Traceback (most recent call last):
  File "C:\GitHub\RIDE\src\robotide\editor\kweditor.py", line 303, in on_select_cell
    self._colorize_grid()
  File "C:\GitHub\RIDE\src\robotide\editor\kweditor.py", line 601, in _colorize_grid
    self.highlight(value)
  File "C:\GitHub\RIDE\src\robotide\editor\kweditor.py", line 609, in highlight
    wx.CallLater(100, self._colorizer.colorize, text)
  File "C:\Python310\lib\site-packages\wx\core.py", line 3471, in __init__
    self.Start()
  File "C:\Python310\lib\site-packages\wx\core.py", line 3491, in Start
    self.timer = wx.PyTimer(self.Notify)
  File "C:\Python310\lib\site-packages\wx\core.py", line 2341, in __init__
    Timer.__init__(self)
RecursionError: maximum recursion depth exceeded while calling a Python object
Traceback (most recent call last):
  File "C:\GitHub\RIDE\src\robotide\editor\gridbase.py", line 212, in on_range_select
    self.selection.set_from_range_selection(self, event)
  File "C:\GitHub\RIDE\src\robotide\editor\gridbase.py", line 295, in set_from_range_selection
    self._set(*self._get_bounding_coordinates(gridd, event))
  File "C:\GitHub\RIDE\src\robotide\editor\gridbase.py", line 283, in _set
    self.bottomright = self._count_bottomright(topleft, bottomright)
  File "C:\GitHub\RIDE\src\robotide\editor\gridbase.py", line 288, in _count_bottomright
    return _Cell(min(self._grid.NumberRows - 1, bottomright[0]),
RecursionError: maximum recursion depth exceeded in comparison
Traceback (most recent call last):
  File "C:\GitHub\RIDE\src\robotide\editor\kweditor.py", line 303, in on_select_cell
    self._colorize_grid()
  File "C:\GitHub\RIDE\src\robotide\editor\kweditor.py", line 596, in _colorize_grid
    selection_content = self._get_single_selection_content_or_none_on_first_call()
  File "C:\GitHub\RIDE\src\robotide\editor\kweditor.py", line 617, in _get_single_selection_content_or_none_on_first_call
    return self.get_single_selection_content()
  File "C:\GitHub\RIDE\src\robotide\editor\gridbase.py", line 160, in get_single_selection_content
    cells = self.get_selected_content()
  File "C:\GitHub\RIDE\src\robotide\editor\gridbase.py", line 156, in get_selected_content
    return self._get_block_content(self.selection.rows(),

This problem was mentioned in #2778