Project

General

Profile

Bug #9937

New lua usermanual generator from pull request 541 does not work

Added by Ulrich Pegelow almost 4 years ago. Updated over 1 year ago.

Status:
New
Priority:
Low
Category:
Usermanual
Start date:
05/03/2014
Due date:
% Done:

0%

Affected Version:
git development version
System:
openSUSE
bitness:
64-bit
hardware architecture:
amd64/x86

Description

As already reported in my comments on that pull request lua crashes when trying to auto-create
the usermanual. Here is my luarc (I commented out those parts that don't have an effect on the crash):

package.path = package.path..";/home/pegelow/darktable/tools/lua_doc/?.lua" 
usermanual = require "usermanual" 
-- outfile =io.open("/home/pegelow/darktable/doc/usermanual/lua/lua_api.xml","w+")
-- outfile:write(usermanual.get_doc())
-- outfile:close()
-- os.exit()

Here is the stack trace:

LUA ERROR : should never happen
stack traceback:
        [C]: in ?
        [C]: in ?
        [C]: in function 'for iterator'
        /home/pegelow/darktable/tools/lua_doc/core.lua:138: in function 'document_type_from_obj'
        /home/pegelow/darktable/tools/lua_doc/core.lua:206: in function </home/pegelow/darktable/tools/lua_doc/core.lua:200>
        (...tail calls...)
        /home/pegelow/darktable/tools/lua_doc/core.lua:141: in function 'document_type_from_obj'
        /home/pegelow/darktable/tools/lua_doc/core.lua:206: in function </home/pegelow/darktable/tools/lua_doc/core.lua:200>
        (...tail calls...)
        /home/pegelow/darktable/tools/lua_doc/core.lua:144: in function 'document_type_from_obj'
        /home/pegelow/darktable/tools/lua_doc/core.lua:206: in function </home/pegelow/darktable/tools/lua_doc/core.lua:200>
        (...tail calls...)
        /home/pegelow/darktable/tools/lua_doc/core.lua:144: in function 'document_type_from_obj'
        /home/pegelow/darktable/tools/lua_doc/core.lua:189: in function </home/pegelow/darktable/tools/lua_doc/core.lua:175>
        (...tail calls...)
        /home/pegelow/darktable/tools/lua_doc/core.lua:607: in main chunk
        [C]: in function 'require'
        /home/pegelow/darktable/tools/lua_doc/content.lua:1: in main chunk
        [C]: in function 'require'
        /home/pegelow/darktable/tools/lua_doc/usermanual.lua:26: in main chunk
        [C]: in function 'require'
        /home/pegelow/.config/darktable/luarc:2: in main chunk

My lua version: Lua 5.2.1 Copyright (C) 1994-2012 Lua.org, PUC-Rio

History

#1 Updated by Roman Lebedev over 1 year ago

I think this has been resolved?

Also available in: Atom PDF