mherrmann / mherrmann/fman

windows 10 installation throwing error every folder change

Open
#728 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

every directory change thorws an error.
I tried to reinstall fman, without any success. (Installation path was C:\Users\andre\AppData\Local\fman)

Maybe because the C:\Users\andre\AppData\Local\fman\Versions\1.7.0 is still there after removal of the app

I tried a second install with deleting the folder inbeween.
No success

The details of one error message


DirectoryPaneListener 'GoToListener' raised error.

Traceback (most recent call last):
File "fman\impl\plugins\plugin.py", line 311, in notify_listener_in_thread
File "C:\Users\andre\AppData\Local\fman\Versions\1.7.0\Plugins\Core\core\commands\goto.py", line 148, in on_path_changed
load_json('Visited Paths.json', default={}, save_on_quit=True)
File "fman_init
.py", line 213, in load_json
File "fman\impl\plugins_init_.py", line 37, in load_json
File "fman\impl\plugins\config.py", line 27, in load_json
File "fman\impl\plugins\config.py", line 91, in load_json
File "json_init_.py", line 299, in load
File "json_init_.py", line 354, in loads
File "json\decoder.py", line 339, in decode
File "json\decoder.py", line 357, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)


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 with core/commands/goto.py at on_path_changed, then inspect fman/impl/plugins/config.py and the load_json call for Visited Paths.json. Reproduce the error by changing directories on Windows 10 and trace how the empty or invalid JSON is handled. Done means directory changes no longer raise this JSONDecodeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.