gedit-file-search icon indicating copy to clipboard operation
gedit-file-search copied to clipboard

AttributeError: 'Document' object has no attribute 'get_location'

Open bitsnaps opened this issue 3 years ago • 1 comments

Hi, I got this error when clicking on Search files...:

Traceback (most recent call last):
  File ".../.local/share/gedit/plugins/gedit-file-search/file-search/plugin.py", line 141, in on_search_files_activate
    self._openSearchDialog()
  File ".../.local/share/gedit/plugins/gedit-file-search/file-search/plugin.py", line 146, in _openSearchDialog
    self._searchDialog.show(searchText, searchDirectory)
  File ".../.local/share/gedit/plugins/gedit-file-search/file-search/search_dialog.py", line 194, in show
    gFilePath = self._window.get_active_tab().get_document().get_location()
AttributeError: 'Document' object has no attribute 'get_location'

Note: I had to create this directory /.local/share/gedit/plugins/ and grant permissions to the current user. ubuntu 20.04.

bitsnaps avatar Jan 18 '22 18:01 bitsnaps

Here is the solution that worked for me.

SchrodingersCpp avatar May 14 '24 18:05 SchrodingersCpp