darktable-org / darktable-org/lua-scripts
The `select_non_existing` lua script selects existing images
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 219
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
When Darktable's library contains images with cyrillic characters in the file path, the select_non_existing lua script selects those images in the library even though they exist on disk and display correctly in Darktable. It is a very similar to my earlier purge_nonexistent_images.bat issue.
It seems like the problem appears only on Windows, because when I tested on MacOS it worked fine.
Here's what gets selected after I click the "select non existing" button:
The expected selection would be:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the select_non_existing Lua script and review how it checks file paths on Windows. Reproduce the issue with existing images whose paths contain Cyrillic characters, then verify that only missing images are selected and compare the behavior with macOS if available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100