You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These crashes started occurring with commit fe7c3b2. With commit 478d5b6, when switching to the tab whose directory doesn’t exist any more, we just end up in its parent directory.
Current Behavior
When going back to a tab whose directory doesn’t exist any more, ranger crashes.
Expected Behavior
For ranger not to crash, to avoid losing the current working context.
Possible Solutions
Downgrade ranger or set update_title to false.
Steps to reproduce
Run ranger --clean in a terminal.
:set update_title true
Create a new directory called z.
Open a second tab.
In the second tab, browse into z.
Go back to the first tab.
Delete or trash z.
Go back to the second tab.
At that moment, ranger crashes.
Traceback
Python version: 3.11.3 (main, Jun 5 2023, 09:32:32) [GCC 13.1.1 20230429]
Locale: en_US.UTF-8
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/ranger/core/main.py", line 214, in main
fm.loop()
File "/usr/lib/python3.11/site-packages/ranger/core/fm.py", line 417, in loop
ui.redraw()
File "/usr/lib/python3.11/site-packages/ranger/gui/ui.py", line 343, in redraw
self.draw()
File "/usr/lib/python3.11/site-packages/ranger/gui/ui.py", line 372, in draw
cwd = self.fm.thisdir.path
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'path'
The text was updated successfully, but these errors were encountered:
Runtime Environment
These crashes started occurring with commit fe7c3b2. With commit 478d5b6, when switching to the tab whose directory doesn’t exist any more, we just end up in its parent directory.
Current Behavior
When going back to a tab whose directory doesn’t exist any more, ranger crashes.
Expected Behavior
For ranger not to crash, to avoid losing the current working context.
Possible Solutions
Downgrade ranger or set
update_title
to false.Steps to reproduce
ranger --clean
in a terminal.:set update_title true
z
.z
.z
.At that moment, ranger crashes.
Traceback
The text was updated successfully, but these errors were encountered: