mherrmann / mherrmann/fman

Command 'CreateAndEditFile' raised error.

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

Nobody has claimed this yet.

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

Description

When I try to create a new file using "Shift+F", I get the following error. But a file without extension is getting created, though.

Command 'CreateAndEditFile' raised error.

Traceback (most recent call last):
  File "fman\impl\plugins\command_registry.py", line 128, in _execute_command
  File "C:\Users\rsivasub\AppData\Local\fman\Versions\1.5.6\Plugins\Core\core\commands\__init__.py", line 486, in __call__
    super().__call__(file_to_edit)
  File "C:\Users\rsivasub\AppData\Local\fman\Versions\1.5.6\Plugins\Core\core\commands\__init__.py", line 393, in __call__
    popen_kwargs = strformat_dict_values(editor, {'file': path})
  File "C:\Users\rsivasub\AppData\Local\fman\Versions\1.5.6\Plugins\Core\core\util.py", line 17, in strformat_dict_values
    value = list(map(replace, value))
  File "C:\Users\rsivasub\AppData\Local\fman\Versions\1.5.6\Plugins\Core\core\util.py", line 13, in replace
    return value.format(**replacements)
KeyError: '90150000-0011-0000-0000-0000000FF1CE'

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 by reproducing the Shift+F action in fman and read the traceback locations in Plugins/Core/core/commands/init.py and Plugins/Core/core/util.py, especially strformat_dict_values. Done means CreateAndEditFile creates and opens the requested new file without raising the reported KeyError.

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.