[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: LuaSocket and LuaEclipse Problems
- From: "Peloquin, Allen Charles" <apeloquin@...>
- Date: Thu, 12 Apr 2007 15:00:31 -0700
Title: LuaSocket and LuaEclipse Problems
I recently began tinkering with LuaSocket, and after scouring the internet for a Lua IDE, settled for the LuaEclipse plugin.
Things worked very well, until I made my first http.request, at which point I received:
The code is (taken from some examples):
http = require("socket.http")
r, c, h = http.request("http://www.tecgraf.puc-rio.br/~diego")
C:\lua\lua5.1.exe: C:\lua\socket\http.lua:116: attempt to index local 'c' (a nil value)
[C]: in function 'request'
C:\test\Lua_test\test.lua:7: in main chunk
I investigated the offending code, found nothing to warrant this, so continued playing around, ultimately running the code against the interpreter through the command prompt. Of course, it worked flawlessly.
I am aware that LuaEclipse 1.0.0 is designed for Lua 5.0, and as such I have run into some code highlighting issues, but considering the plugin feeds the code to the interpreter, I am at a loss as to why this is occurring.