I’m trying to set up the Lua Development Tools / Koneki for the first time. I’m new to Eclipse, but I’ve made a bunch of Lua programs from the command line before.
Hopefully my problem is a generic Eclipse one that someone might be able to help with.
What I did:
After downloading LDT, I followed the short set-up guide. I downloaded the suggested Lua 5.1 zip. I added 5.1 as an execution environment following the set-up guide.
Problem:
I cannot run any Lua projects. When I hit the green Run or Debug buttons, Koneki says “This selection cannot be launched, and there are no recent launches.” It seems this is a generic Eclipse error.
When I click the drop-down arrow on the Run button, only “Run configurations” is available, and on that Run Configurations pane I cannot add a run configuration, the New button is greyed out.
Please can someone give more information on how to debug or fix this kind of error in Eclipse? I get the feeling I’ve missed some step that might be obvious to people who know Eclipse.
I don’t use this as a lua compiler – I use it to run embedded lua so when I tried to start a console script I got the same result as you.
Here’s what I did – not sure if it’s the best way but it works
Click Run/External Tools/External Tools Configurations…
A dialog box pops up
Put in
Then click on the green run drop down and select Run Configurations then in the dialog add a new configuration by clicking on the Add button on the right and select lua under the program list. Click Apply.
Now when you select main.lua and click on play it runs the lua script you’ve selected. Then after doing this I thought what happens if I read the manual and sure enough :-). click on help and Help Contents then in the help look at ‘LDT user guide’ and it tells you what to do there, a lot more elegantly than the above.
Hopefully this will get you started. cheers.
[Update: I tried the following the manual and it works for me. I put a print in, selected main.lua and clicked the green button and it prints hello in the console output below
[Update2: no you need the external configuration stuff even after following the manual]