torch/qtlua

qlua -ide not working

qas32 opened this issue · 2 comments

qas32 commented

This commit :
575f723

leads to :
$ qlua -ide
qlua: ...torch-distro/distro/install/share/lua/5.1/qtide/init.lua:73: attempt to call global 'setup' (a nil value)
stack traceback:
[C]: in function 'setup'
...torch-distro/distro/install/share/lua/5.1/qtide/init.lua:73: in function 'start'
[string " qtide.start()"]:1: in main chunk

https://github.com/torch/qtlua/blob/master/packages/qtide/init.lua#L73
"setup" should be "qtide.setup"
This should fix the issue.

Same issue spotted here : https://github.com/torch/qtlua/blob/master/packages/qtide/init.lua#L180
"pcall(help)" should be "pcall(qtide.help)"
I'm not 100% sure but maybe "help" isn't supposed to be "qtide.help" in all cases (if one decides to override it by loading another "help" function).

Also the same thing may have happened in other files.

@colesbury ?

facing the same issue with newly installed torch and lua while using qlua -ide
torch/install/share/lua/5.1/qtide/init.lua:73: attempt to call global 'setup' (a nil value)

fixed via #22 and c077ce7