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

Make dirwatch sorting compatible with what file_bisect expects #1300

Merged
merged 1 commit into from
Jan 5, 2023

Conversation

Guldoman
Copy link
Member

@Guldoman Guldoman commented Jan 4, 2023

The result of a.filename < b.filename is sometimes different from system.path_compare(a.filename, a.type, b.filename, b.type) which causes issues to file_bisect, as it expects the sorting to be done with system.path_compare.

For example to trigger the issue, in an empty project dir run:

rm -rf *; sleep 2; mkdir àa1234àa; sleep 2; mkdir a1234

This also fixes #1260 (which was misdiagnosed).

The result of `a.filename < b.filename` is sometimes different from 
`system.path_compare(a.filename, a.type, b.filename, b.type)` which 
causes issues to `file_bisect`, as it expects the sorting to be done 
with `system.path_compare`.
@adamharrison
Copy link
Member

LGTM, fixes the issue, and the diagnosis seems quite correct. Merging.

@adamharrison adamharrison merged commit 72c0ad7 into lite-xl:master Jan 5, 2023
takase1121 pushed a commit to takase1121/lite-xl that referenced this pull request Jan 16, 2023
…ite-xl#1300)

The result of `a.filename < b.filename` is sometimes different from 
`system.path_compare(a.filename, a.type, b.filename, b.type)` which 
causes issues to `file_bisect`, as it expects the sorting to be done 
with `system.path_compare`.
takase1121 pushed a commit to takase1121/lite-xl that referenced this pull request Aug 19, 2023
…ite-xl#1300)

The result of `a.filename < b.filename` is sometimes different from 
`system.path_compare(a.filename, a.type, b.filename, b.type)` which 
causes issues to `file_bisect`, as it expects the sorting to be done 
with `system.path_compare`.
takase1121 pushed a commit to takase1121/lite-xl that referenced this pull request Aug 19, 2023
…ite-xl#1300)

The result of `a.filename < b.filename` is sometimes different from 
`system.path_compare(a.filename, a.type, b.filename, b.type)` which 
causes issues to `file_bisect`, as it expects the sorting to be done 
with `system.path_compare`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Toggling empty dirs raises error
2 participants