Skip to content

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

@bitsnaps

Description

@bitsnaps

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions