Hi,
Out of the sudden (everything worked fine 20 minutes ago) I'm getting the following error:
ranger version: ranger-master
Python version: 3.8.2 (default, Feb 26 2020, 22:21:03) [GCC 9.2.1 20200130]
Locale: en_IE.UTF-8
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/ranger/core/main.py", line 173, in main
fm.initialize()
File "/usr/lib/python3.8/site-packages/ranger/core/fm.py", line 127, in initialize
self.bookmarks.load()
File "/usr/lib/python3.8/site-packages/ranger/container/bookmarks.py", line 47, in load
new_dict = self._load_dict()
File "/usr/lib/python3.8/site-packages/ranger/container/bookmarks.py", line 237, in _load_dict
dct[key] = self.bookmarktype(value)
File "/usr/lib/python3.8/site-packages/ranger/container/directory.py", line 150, in __init__
assert not os.path.isfile(path), "No directory given!"
AssertionError: No directory given!
ranger crashed. Please report this traceback at:
https://github.com/ranger/ranger/issues
I'm on Manjaro Linux.
Using a different terminal doesn't help.
Please let me know if this is enough or if you need me to do any testing.
ranger works after removing all contents from ~/.local/share/ranger/bookmarks . Stupidly, I didn't backup the file before deleting so I can't tell what bookmark was the issue.
Could it be you had a bookmark (maybe by accident?) to a directory you removed?
I think that's what happen - in which case apologies for opening a silly issue.
Np, I think reporting which bookmarks couldn't be loaded is better than crashing.
Most helpful comment
Np, I think reporting which bookmarks couldn't be loaded is better than crashing.