darktable-org / darktable-org/lua-scripts

The `select_non_existing` lua script selects existing images

Open
#684 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

os: windows
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:

Image

The expected selection would be:

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.