Skip to content

AttributeError: 'Project' object has no attribute 'datafile_controller' #2989

@HelioGuilherme66

Description

@HelioGuilherme66

Exception seen in console when selecting Tools->Library Finder... on a clean install (a.k.a. first time install), on Fedora Linux 42, without opened Project. RIDE keeps working fine, but Library Finder... dialog did not appear.

System info:

20251006 22:07:17.738 [INFO]: Found Robot Framework version 7.3.2 from /home/helio/.local/lib/python3.13/site-packages/robot.

20251006 22:07:17.739 [INFO]: Started RIDE v2.2 using python version 3.13.7 with wx version 4.2.4a15946+920a2bde in linux.
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/robotide/ui/actiontriggers.py", line 366, in __call__
    action.act(event)
    ~~~~~~~~~~^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/robotide/action/action.py", line 89, in act
    self.action(event)
    ~~~~~~~~~~~^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/robotide/spec/libraryfinder.py", line 118, in execute_library_install
    value = self.on_library_form(name=library_name)
  File "/usr/local/lib/python3.13/site-packages/robotide/spec/libraryfinder.py", line 106, in on_library_form
    dlg = LibraryFinderDialog(self.get_selected_item(), item=item, plugin=self, title=_('Library Finder'))
  File "/usr/local/lib/python3.13/site-packages/robotide/editor/editordialogs.py", line 232, in __init__
    self._library_suggester = LibrariesSuggester(controller, self._history_suggester)
                              ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/robotide/namespace/suggesters.py", line 150, in __init__
    self._cached_suggester = CachedLibrarySuggester(controller)
                             ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/robotide/namespace/suggesters.py", line 109, in __init__
    self._df_controller = controller.datafile_controller
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Project' object has no attribute 'datafile_controller'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugMalfunctions that should be fixed to comply with the expected behaviorprio-mediumBehaving incorrectly, but still somewhat usable

    Type

    No type

    Projects

    Status

    To do

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions