Left here for archival purposes.

User avatar
By Patriko
#10974 Hi,

that's something wired. I've updated node to 0.9.5 which should support compile function, but when I try to use it I get:

Code: Select all>
> node.compile('led.lua')
stdin:1: attempt to call field 'compile' (a nil value)

(version check: )
print(node.info())
0   9   5   10199482   1458415   512   0   40000000

What can be the reason?

thanks,
Patriko
User avatar
By joe
#10977 Here is what I get:

Code: Select all> =node.info()
0   9   5   10417356   1261768   512   0   40000000
> for k, v in pairs(file.list()) do print('file:'..k..' len:'..v) end
file:init.lua len:901
> node.compile('init.lua')
> for k, v in pairs(file.list()) do print('file:'..k..' len:'..v) end
file:init.lua len:901
file:init.lc len:1412


So I suggest a reboot and if that doesn't work, a recompile/reflash.