LOVE2D Eclipse LDT Execution Environment. That means you get autocomplete and all that.
This repository is the contents of a .zip file you could feed into Eclipse LDT.
Obviously you will need to have the eclipse LuaDevelopmentTools installed. Also fundamental: A working LOVE2D interpreter. You can use the Execution Environment with eclipse using the default Lua5.1 interpreter or any other, but don't blame me or open an issue if your (well, at least autocompleted) code won't run (Spoiler: It won't). So, please check out the Getting Started pages at the LOVE2D-Wiki and the LDT Wiki on interpreters first.
Lucky for you, installation of the Execution Environment is a breeze thanks to the latest in archiving technology!
- Grab the latest .zip package from https://github.com/leafi/love-eclipse-ldt/releases .
- Start a new Lua project in LDT
- Under 'Targeted Execution Environment' in the new project options, click Configure Execution Environments...
- Click Add...
- Browse to the .zip file you downloaded
- Just use that, basically. It should work. Open an Issue if it doesn't!
- ...And if this isn't a brand new project from the default template, then you also need to go in the build path options (right-click project on left, click Properties, then go to Lua > Build Path) and on the Libraries tab, click Add Library... and add the execution environment zip. Sorry, just discovered that myself.
The api.zip is built using https://github.com/leafi/love-api-to-ldt-luadoc, a tool which itself takes the LOVE2D API definitions from https://github.com/love2d-community/love-api. Phew!
- Go to https://github.com/leafi/love-api-to-ldt-luadoc and follow the instructions in the README - carefully.
- With those instructions thoroughly followed, you now find yourself with an api.zip file.
- Download the contents of this repository, and replace api.zip with the one you made.
- In the love-eclipse-ldt folder, zip everything. You must be INSIDE the folder. The top-level of the .zip should be .rockspec, api.zip and all that - no love-eclipse-ldt folder in sight!
- Follow the 'Pre-built' instructions above from step 2 onwards to install the bugger.
Current TODOs:
- utf8 Lua module missing - tell me where to find a definition file and I'll stuff it in.
- No enum definitions.
- All functions only have their last definition output. Function overloading is ignored! I can't find a good way to implement this. I think we just need to conjure up a good heuristic to pick the 'best' option.
@sirskunkalot for updating from 0.9.2 to 0.10.1. And continuing.
Original Koneki (pre-LDT) API files: https://github.com/mkosler/LOVELuaDoc
And https://github.com/love2d-community/love-api is the definition set we produce api.zip from nowadays.