Skip to content

Bug in contrib/geoToolbox.lua - use of for _,image in ipairs(sel_images) do conflicts with function _(msgid) #571

Closed
@fjb2020

Description

@fjb2020

I wanted to use the contrib/geoToolbox script to tweak some GPS settings on some images, but it wasn't working.

Inspecting via ./darktable -d lua showed this error
11.0105 LUA ERROR : /Volumes/EXT-Data/Data/darktable/lua/contrib/geoToolbox.lua:310: attempt to call a number value (local '_')

It seems that the use of

for _,image in ipairs(sel_images) do 

causes a conflict with the function _(msgid)

I changed the 8 instances of

for _,image in ipairs(sel_images) do 

to

for jj,image in ipairs(sel_images) do

This fixed the error I was seeing and let me use the script as required.

System: 5.1.0+473~g51e22e438a (nightly) on macOS Sequoia 15.3.2 on M1 Max Studio

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions