Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2023 19:21:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 269074] editors/lite fails to launch after installing lua (5.3/5.4?)
Message-ID:  <bug-269074-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269074

            Bug ID: 269074
           Summary: editors/lite fails to launch after installing lua
                    (5.3/5.4?)
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: danfe@FreeBSD.org
          Reporter: khwerz@gmail.com
          Assignee: danfe@FreeBSD.org
             Flags: maintainer-feedback?(danfe@FreeBSD.org)

tldr; lite editor seems to expect luajit, when lua5.4 is installed, it goes=
 to
that version, which is not supported.


Initial error:


$ lite
Error: /usr/local/share/lite/core/init.lua:131: bad argument #2 to 'format'
(number has no integer representation)
stack traceback:
        [C]: in function 'string.format'
        /usr/local/share/lite/core/init.lua:131: in main chunk
        [C]: in function 'require'
        [string "local core..."]:10: in function <[string "local core..."]:=
2>
        [C]: in function 'xpcall'
        [string "local core..."]:2: in main chunk


Checking the code, the line at fault is


local temp_uid =3D (system.get_time() * 1000) % 0xffffffff
local temp_file_prefix =3D string.format(".lite_temp_%08x", temp_uid)


string.format will format temp_uid which is a float, in lua 5.1/5.2/jit, lua
automatically floored floats. but even when flooring and the application
launching, no file selection appears.


Solution: Probably using strictly luajit/lua5.1/lua5.2


Note: I am unsure if it automatically will start failing after installing
lua5.4/5.3, but I am unwilling to test/uninstall them atm.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269074-7788>