-
Notifications
You must be signed in to change notification settings - Fork 890
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
:flat 1
crashes ranger
#2812
Comments
I sometimes have a slightly different error:
Combined with the fact that the only recent change in the file I changed back by hand this line and everything works fine. |
I think I know where this comes from: I just ran
Clearly it shouldn’t suggest that. There is in fact a recent |
So, after looking at the mtime = max(mtime, *[-1] + [os.stat(d).st_mtime for d in dirlist]) (or perhaps simply to move |
Thank you for bringing this to our attention! I agree we should just append |
Pylint flagged a nested max call as redundant but it was a false positive. However, the nested max call materialized a generator as a list and prepended `-1` because the function errors on an empty argument. Instead of nesting a max call we can drop the nesting and prepend the current value instead of passing it as a separate argument. Fixes ranger#2812 Co-authored-by: vejkse <[email protected]>
I've opened a PR, tried to add you as a co-author on the commit with a GitHub no-reply email. Could you confirm I used the correct committer email address for you, or whether you'd prefer not to be listed in the first place? |
Sorry, I just saw this, having been busy these last few days. I think I’d just prefer not to be listed. |
Runtime Environment
Current Behavior
When executing
:flat 1
in any directory, ranger crashes. Tested withranger --clean
.Expected Behavior
Not crashing and displaying all files up to depth 1.
Possible Solutions
Rollback to a previous version. I have commit f8b304f available and it works fine.
Traceback
The text was updated successfully, but these errors were encountered: