Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Koneki » Importing Rocks(Better Documentation needed for beginners regarding LuaRocks Integration)
Importing Rocks [message #1023830] Mon, 25 March 2013 05:11 Go to next message
Nick Scott is currently offline Nick Scott
Messages: 1
Registered: March 2013
Junior Member
This is definitely a newbie rant but please indulge me and be assured that any help which can be provided is much appreciated.

I have recently decided to learn Lua and the work of the Eclipse M2M Group seems like a good starting point. To that end I've installed Koneki and, after getting the Hello World application to work, I decided to try and add a library.

So I've installed LuaRocks, and pull down LuaSocket. But the line 'require "socket"' works fine in my command line but not in Koneki.

I realise that this is a path issue but, after a day spent trying to fix it, I'm just frustrated. I can't be the only one struggling with this (in fact, someone else has already made a post here on this matter).

As an observation, for a new comer, Koneki configuration can be very confusing (I realise this is partly just a hangover from Eclipse). I've tried adding a library, adding a project, adding source, configuring an External Tool, changing the Executable Environment and defining my own Interpreter. I don't really understand what the difference between all these things is and I'd really like to be able to just point Koneki at the folder which LuaRocks is using.

More specifically, in the tentative plan for Koneki, it was stated that in Q3 2011 "Improve Lua Tooling: LuaRocks support" would be provided. Does any one know if that's been done? Does any one know of any documentation on it?
Re: Importing Rocks [message #1025952 is a reply to message #1023830] Tue, 26 March 2013 07:21 Go to previous message
Kevin KIN-FOO is currently offline Kevin KIN-FOO
Messages: 47
Registered: January 2010
Member
Hi Nick,

Thanks for your constructive feedback.

As I am writing they is no UI available to configure native libraries nor rocks.
We may have something even better: the ability to use your system lua interpreter[1].
Your system interpreter is tightly tied to LuaRocks and enable you to manage your own $LUA_PATH[1].

require 'socket' did not work because in order to have it all working out of the box, we use a custom interpreter by default[2].
You said feeling confused about some concepts of Koneki LDT. I know some documentation on them[3].

Regards

[1] Manage local interpreters
[2] Concepts: interpreters
[3] Concepts

[Updated on: Tue, 26 March 2013 09:04]

Report message to a moderator

Previous Topic:LDT error when creating Lua project
Next Topic:LDT 0.9 Support for Eclipse Helios 3.6.2 (64-bit)
Goto Forum:
  


Current Time: Fri Apr 18 19:24:49 EDT 2014

Powered by FUDForum. Page generated in 0.02028 seconds