Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

~/.cache/thefuck not found #835

Closed
mu-hun opened this issue Aug 25, 2018 · 0 comments
Closed

~/.cache/thefuck not found #835

mu-hun opened this issue Aug 25, 2018 · 0 comments

Comments

@mu-hun
Copy link

mu-hun commented Aug 25, 2018

The output of thefuck --version (something like The Fuck 3.1 using Python 3.5.0):

The Fuck 3.27 using Python 3.7.0

Your shell and its version (bash, zsh, Windows PowerShell, etc.):

fish, version 2.7.1-929-gb575e120

Shell configure file config.fish :

if __available thefuck
 thefuck --alias | source
end

Your system (Debian 7, ArchLinux, Windows, etc.):

macOS High Sierra version 10.13.5

How to reproduce the bug:

~  fuck # just type fuck

The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck):

DEBUG: Run with settings: {'alter_history': True,
 'debug': True,
 'env': {'GIT_TRACE': '1', 'LANG': 'C', 'LC_ALL': 'C'},
 'exclude_rules': [],
 'history_limit': None,
 'instant_mode': False,
 'no_colors': False,
 'priority': {},
 'repeat': False,
 'require_confirmation': True,
 'rules': [<const: All rules enabled>],
 'slow_commands': ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'],
 'user_dir': PosixPath('~/.config/thefuck'),
 'wait_command': 3,
 'wait_slow_command': 15}
[WARN] Removing possibly out-dated cache
DEBUG: Total took: 0:00:00.002215
Traceback (most recent call last):
  File "/usr/local/Cellar/thefuck/3.27_1/libexec/lib/python3.7/site-packages/thefuck/utils.py", line 197, in _init_db
    self._db = shelve.open(cache_path)
  File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/shelve.py", line 243, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/shelve.py", line 227, in __init__
    Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
  File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/dbm/__init__.py", line 94, in open
    return mod.open(file, flag, mode)
_gdbm.error: [Errno 13] Permission denied

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/thefuck", line 12, in <module>
    sys.exit(main())
  File "/usr/local/Cellar/thefuck/3.27_1/libexec/lib/python3.7/site-packages/thefuck/entrypoints/main.py", line 25, in main
    fix_command(known_args)
  File "/usr/local/Cellar/thefuck/3.27_1/libexec/lib/python3.7/site-packages/thefuck/entrypoints/fix_command.py", line 36, in fix_command
    command = types.Command.from_raw_script(raw_command)
  File "/usr/local/Cellar/thefuck/3.27_1/libexec/lib/python3.7/site-packages/thefuck/types.py", line 81, in from_raw_script
    expanded = shell.from_shell(script)
  File "/usr/local/Cellar/thefuck/3.27_1/libexec/lib/python3.7/site-packages/thefuck/shells/generic.py", line 30, in from_shell
    return self._expand_aliases(command_script)
  File "/usr/local/Cellar/thefuck/3.27_1/libexec/lib/python3.7/site-packages/thefuck/shells/fish.py", line 73, in _expand_aliases
    aliases = self.get_aliases()
  File "/usr/local/Cellar/thefuck/3.27_1/libexec/lib/python3.7/site-packages/thefuck/shells/fish.py", line 67, in get_aliases
    functions = _get_functions(overridden)
  File "/usr/local/Cellar/thefuck/3.27_1/libexec/lib/python3.7/site-packages/thefuck/utils.py", line 33, in wrapper
    memo[key] = fn(*args, **kwargs)
  File "/usr/local/Cellar/thefuck/3.27_1/libexec/lib/python3.7/site-packages/thefuck/utils.py", line 267, in wrapper
    return _cache.get_value(fn, depends_on, args, kwargs)
  File "/usr/local/Cellar/thefuck/3.27_1/libexec/lib/python3.7/site-packages/thefuck/utils.py", line 233, in get_value
    self._init_db()
  File "/usr/local/Cellar/thefuck/3.27_1/libexec/lib/python3.7/site-packages/thefuck/utils.py", line 201, in _init_db
    os.remove(cache_path)
FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/thefuck'

Anything else you think is relevant:

I saw #71 #807 but I have not found yet solution.

And ~/.cache/thefuck not in ~/.cache

 ~  ls .cache/
bower         gstreamer-1.0
 ~  ls .cache/thefuck
ls: .cache/thefuck: No such file or directory
nvbn added a commit that referenced this issue Oct 17, 2018
@mu-hun mu-hun closed this as completed Oct 22, 2018
riley-martine pushed a commit to riley-martine/thefuck that referenced this issue Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant