Hi Tuomo,

I'm running ion3-20080207 on Debian, installed from native debian
package ion3-20080207-1.

Since I upgraded to this package, the code, that was working
flawlessly before, started to trow errors.  Here is the snippet of
offending code:

        local tf = ioncore.lookup_region("WFrameSS", "WFrame")
        local wg = tf:attach_new({type = "WGroupCW", switchto = t.switchto})
        local opt = {type = "WTiling", name = c, dir = "horizontal",
switchto = t.switchto, bottom = true,
            split_tree = {type = "WSplitSplit", dir = "horizontal",
tls = 1, brs = 1,
            tl = {type = "WSplitRegion", regparams = {type = "WFrame",
name = c.."-left"}},
            br = {type = "WSplitRegion", regparams = {type = "WFrame",
name = c.."-right"}}}}
        local ws = wg:attach_new(opt)

And now it says (refferring to the last line of the of the snippet):

ion3: /home/alte/etc/.ion3/mod_smallscreen.lua:124: attempt to index
local 'wg' (a nil value)

As I understand this, 'attach_new' call returns 'nil' in this version
of ion3 for the reasons not very clear to me.

Could you please comment on how to update the code to make it work in
new version of ion?

Thanks in advance,

Alexander

Reply via email to