-
Notifications
You must be signed in to change notification settings - Fork 888
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
Ranger crashes when deleting to Trash #1798
Comments
How did you invoke the trash command? |
I'm having the same issue with 1.9.3. |
Just compiled v1.9.3 and get the same crash as above. Also, "open_with" key 'r', no longer works! |
@w2kpro, this is a confirmed bug yes. Wasn't labeled because of oversight. However, I can't reproduce your problem with the |
Crashes while trying to trash a directory. Steps to reproduce:
|
Yep, Got the same issue here in mac , installed through homebrew brew info ranger
ranger: stable 1.9.3, HEAD
File browser
https://ranger.github.io
/usr/local/Cellar/ranger/1.9.3 (187 files, 1.4MB) *
Built from source on 2020-02-16 at 19:38:42
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/ranger.rb
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 2,645 (30 days), 8,257 (90 days), 20,879 (365 days)
install-on-request: 2,552 (30 days), 7,956 (90 days), 20,366 (365 days)
build-error: 0 (30 days) |
So why closed? |
@Augists, I closed your issue because this one is the same problem. No need to track it in multiple threads, just gets confusing. |
have it here too it seems
|
@salkin-mada Please read the comment before yours |
Hi @magnetophon I did. Maybe I am mistaking but the comment just says someones other issue was closed and it references that #2050 was closed in favor of this issue #1798 ? |
Yep, to be clear, THIS is the open/active issue. |
@salkin-mada Hmm, I didn't read properly, yet told you to read... Sorry. |
until fixed here a hack which works for me: File "/usr/lib/python3.8/site-packages/ranger/core/actions.py", line 459, in <listcomp>
filenames = [f.path for f in files] change the line to filenames = [f if isinstance(f, str) else f.path for f in files] Use at your own risk though, no guarantees. |
OS: Linuxmint 19.3
Python: 3.6.9
Ranger: v1.9.2
trash-cli: 0.12.9.14-2.1
When deleting a highlighted file to trash, I get the following error:
"object has no attribute 'path'"
When deleting a (one) selected file to trash, I am asked to confirm delete, and after inputing 'y' ranger crashes.
ranger version: ranger-master
Python version: 3.6.9 (default, Nov 7 2019, 10:44:02) [GCC 8.3.0]
Locale: en_GB.UTF-8
Current file: '/home/standard_user/file.txt'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/ranger/core/main.py", line 201, in main
fm.loop()
File "/usr/local/lib/python3.6/dist-packages/ranger/core/fm.py", line 383, in loop
ui.handle_input()
File "/usr/local/lib/python3.6/dist-packages/ranger/gui/ui.py", line 279, in handle_input
self.handle_key(key)
File "/usr/local/lib/python3.6/dist-packages/ranger/gui/ui.py", line 209, in handle_key
elif not DisplayableContainer.press(self, key):
File "/usr/local/lib/python3.6/dist-packages/ranger/gui/displayable.py", line 271, in press
focused_obj.press(key)
File "/usr/local/lib/python3.6/dist-packages/ranger/gui/widgets/console.py", line 188, in press
self.type_key(key)
File "/usr/local/lib/python3.6/dist-packages/ranger/gui/widgets/console.py", line 214, in type_key
self._answer_question(answer)
File "/usr/local/lib/python3.6/dist-packages/ranger/gui/widgets/console.py", line 197, in _answer_question
callback(answer)
File "/usr/local/lib/python3.6/dist-packages/ranger/config/commands.py", line 757, in _question_callback
self.fm.execute_file(files, label='trash')
File "/usr/local/lib/python3.6/dist-packages/ranger/core/actions.py", line 458, in execute_file
filenames = [f.path for f in files]
File "/usr/local/lib/python3.6/dist-packages/ranger/core/actions.py", line 458, in
filenames = [f.path for f in files]
AttributeError: 'str' object has no attribute 'path'
ranger crashed. Please report this traceback at:
https://github.com/ranger/ranger/issues
-->
Runtime Environment
Current Behavior
Expected Behavior
Context
Possible Solutions
Steps to reproduce
Traceback
The text was updated successfully, but these errors were encountered: