-->
Page 1 of 1

Node.Compile('xxx.lua') doesn't work in nodemcu 0.9.5

PostPosted: Sat Feb 28, 2015 7:55 am
by Patriko
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

Re: Node.Compile('xxx.lua') doesn't work in nodemcu 0.9.5

PostPosted: Sat Feb 28, 2015 9:04 am
by joe
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.

Re: Node.Compile('xxx.lua') doesn't work in nodemcu 0.9.5

PostPosted: Mon Mar 02, 2015 10:24 pm
by zeroday
added since build 0213
not all 0.9.5