Menu

#14 compiler does not include @-sign

v3.0-beta1
open-accepted
nobody
None
5
2013-07-26
2012-12-18
Anonymous
No

The lua compiler includes debug information into the bytecode, amongst others the original lua file name that was used. In the 1.0.5 version of luaj-j2se, this name always starts with an '@'-sign, followed by the (relative) path to the lua file. This is in line with the behaviour of the luac compiler version 5.1.4, written in c (the reference implementation from lua.org). In version j2se-2.0.0, this has changed. The '@' sign as well as the filename extention '.lua' are not included anymore. Version jse-3.0-alpha1 also shows this error.

Discussion

  • James Roseborough

    I'll take a look at this for the beta2 release.

     
  • James Roseborough

    • status: open --> open-accepted
    • Group: --> v3.0-beta1
     
  • Qix

    Qix - 2013-07-26

    Works fine for me.

    for i,v in pairs(debug.getinfo(1)) do
        print(i..': '..tostring(v))
    end
    

    yields:


    nups: 1
    source: @chain/cpp.lua <-------
    what: Lua
    nparams: 0
    func: function: @chain/cpp.lua:0-0
    istailcall: 0
    lastlinedefined: 0
    short_src: chain/cpp.lua
    name: require
    currentline: 4
    isvararg: 1
    namewhat: global
    linedefined: 0

    Version 3.0b1

     

    Last edit: Qix 2013-07-26

Log in to post a comment.