mherrmann / mherrmann/fman

DirectoryPaneListener 'GoToListener' raised error.

Open
#767 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug linux
Dominant language
Python
Stars
275
Forks
16
PR merge metrics
No merged PRs in 30d

Description

Ubuntu 18.04, x86_64 arch. The error dialog appears on Fman start with the message:

DirectoryPaneListener 'GoToListener' raised error.

Traceback (most recent call last):
  File "fman/impl/plugins/plugin.py", line 311, in _notify_listener_in_thread
  File "/opt/fman/Plugins/Core/core/commands/goto.py", line 157, in on_path_changed
    _remove_nonexistent(visited_paths, timeout_secs=0.01)
  File "/opt/fman/Plugins/Core/core/commands/goto.py", line 190, in _remove_nonexistent
    is_dir = os.path.isdir(path)
  File "genericpath.py", line 42, in isdir
UnicodeEncodeError: 'ascii' codec can't encode characters in position 23-27: ordinal not in range(128)
uname -a
Linux unatco 5.4.0-42-generic #46~18.04.1-Ubuntu SMP Fri Jul 10 07:21:24 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

If I press OK the app seems to work as normal. But the error dialog is very annoying.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in /opt/fman/Plugins/Core/core/commands/goto.py at on_path_changed and _remove_nonexistent, using the traceback as the entry point. Reproduce the startup error on Ubuntu 18.04 with the reported environment and inspect the non-ASCII path handling. Done means startup no longer raises the DirectoryPaneListener error while GoTo behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, ubuntu
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.