Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Koneki » LDT debugger error(There is a bad argument (nil) in the ltn12.lua, when debug lua script with local interpreter.)
LDT debugger error [message #1425548] Wed, 17 September 2014 13:11 Go to next message
golden ljx is currently offline golden ljxFriend
Messages: 1
Registered: September 2014
Junior Member
1. I use the local interpreter named luajit
2. I have installed luasocket, and pass verification by terminal.
3. when I debug my lua script in LDT, the debugger below happens.
I need help. Thanks so much.

The debugger errro information is below:

Debugger v1.1.0
Debugger: Trying to connect to 127.0.0.1:10000 ...
Debugger: Connection succeed.
DEBUGGER ERROR Command context_get caused: (998) /usr/local/share/lua/5.1/ltn12.lua:41: bad argument #1 to 'getn' (table expected, got nil)
stack traceback:
[C]: in function 'getn'
/usr/local/share/lua/5.1/ltn12.lua:41: in function 'chain'
.../org.eclipse.osgi/173/0/.cp/script/external/debugger.lua:187: in function 'b64'
.../org.eclipse.osgi/173/0/.cp/script/external/debugger.lua:1427: in function 'make_property'
.../org.eclipse.osgi/173/0/.cp/script/external/debugger.lua:649: in function
< .../org.eclipse.osgi/173/0/.cp/script/external/debugger.lua:638>
[C]: in function 'xpcall'
.../org.eclipse.osgi/173/0/.cp/script/external/debugger.lua:3080: in function
<.../org.eclipse.osgi/173/0/.cp/script/external/debugger.lua:3050>
[C]: in function 'pcall'
.../org.eclipse.osgi/173/0/.cp/script/external/debugger.lua:3135: in function 'line_hook'
.../org.eclipse.osgi/173/0/.cp/script/external/debugger.lua:3142: in function
<.../org.eclipse.osgi/173/0/.cp/script/external/debugger.lua:3140>
Re: LDT debugger error [message #1426373 is a reply to message #1425548] Thu, 18 September 2014 16:55 Go to previous messageGo to next message
Marc Aubry is currently offline Marc AubryFriend
Messages: 86
Registered: August 2012
Member
Hi,

I reproduce it. But in my case the debugger seems to work a since I can stop on a breakpoint and run again.

So I have a open a Bug there: https://bugs.eclipse.org/bugs/show_bug.cgi?id=444510

Thanks for the feedback !

Marc
Re: LDT debugger error [message #1436928 is a reply to message #1426373] Fri, 03 October 2014 16:24 Go to previous message
Simon Bernard is currently offline Simon BernardFriend
Messages: 337
Registered: July 2009
Senior Member
Hi golden ljx,

There some problems with LuaJit and Luasocket 2.0. (see https://wiki.eclipse.org/LDT/User_Area/Compatible_Lua_VMs)
If you use Luasocket 3.0, your problem should be gone.
It is available as a luarocks.
sudo luarocks install luasocket3.0rc1-1

Previous Topic:Koneki doesn't work with Funambol DM-Server
Next Topic:Lua Modules
Goto Forum:
  


Current Time: Sat Sep 22 22:56:28 GMT 2018

Powered by FUDForum. Page generated in 0.01575 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top