Page 1 of 2
LÖVE-IDEA-Plugin (LÖVE Plugin for IntelliJ Idea)
Posted: Wed Sep 10, 2014 2:28 pm
by rmcode
This plugin enables auto-complete functionality for functions of the LÖVE-framework while using Lua for IntelliJ Idea.
The plugin is auto-generated from the
LÖVE-API-Documentation.
Download and instructions on github.
Re: LOVE-IDEA-API (LÖVE API for IntelliJ Idea)
Posted: Wed Sep 10, 2014 6:38 pm
by Santos
There's the LÖVE API in Lua table here:
http://santos.nfshost.com/love_api.lua
With it you could automatically create files with something like this:
Code: Select all
api = require('love_api')
love.filesystem.append('love.lua', "module('love')\r\n")
for i, f in ipairs(api.callbacks) do
love.filesystem.append('love.lua', 'function '..f.name..'() end\r\n')
end
for i, f in ipairs(api.functions) do
love.filesystem.append('love.lua', 'function '..f.name..'() end\r\n')
end
for i, m in ipairs(api.modules) do
love.filesystem.append(m.name..'.lua', "module('love."..m.name.."')\r\n")
for ii, f in ipairs(m.functions) do
love.filesystem.append(m.name..'.lua', 'function '..f.name..'() end\r\n')
end
end
I'm not sure how the API files for IntelliJ IDEA work, but you might be able to modify the code above to add parameters, descriptions, and object methods.
Re: LOVE-IDEA-API (LÖVE API for IntelliJ Idea)
Posted: Wed Sep 10, 2014 7:16 pm
by FryDay444
rmcode wrote:I've been using IntelliJ Idea to code in Lua for a long time. Somewhere along the way I created my own API to have auto-complete functionality for all LÖVE functions.
If this works...I think I might love you. (no pun intended)
Re: LOVE-IDEA-API (LÖVE API for IntelliJ Idea)
Posted: Wed Sep 10, 2014 10:54 pm
by rmcode
Santos wrote:I'm not sure how the API files for IntelliJ IDEA work, but you might be able to modify the code above to add parameters, descriptions, and object methods.
Afaik there is a way to have docs too ... but I couldn't get it to work last time I tried. I'll give it another shot!
FryDay444 wrote:rmcode wrote:I've been using IntelliJ Idea to code in Lua for a long time. Somewhere along the way I created my own API to have auto-complete functionality for all LÖVE functions.
If this works...I think I might love you. (no pun intended)
It works here
If you have troubles setting it up just ping me and I'll try to post some clearer instructions.
Re: LOVE-IDEA-API (LÖVE API for IntelliJ Idea)
Posted: Sun Sep 14, 2014 11:28 pm
by rmcode
Pushed a new update. (Re-)Generated the API with the help of the love api and the code Santos posted above.
Re: LOVE-IDEA-API (LÖVE API for IntelliJ Idea)
Posted: Mon Sep 15, 2014 2:23 pm
by FryDay444
rmcode wrote:Pushed a new update. (Re-)Generated the API with the help of the love api and the code Santos posted above.
Haven't had a chance to test this yet, but it doesn't appear like your API shows arguments, does it? If not, any chance of implementing it?
Re: LOVE-IDEA-API (LÖVE API for IntelliJ Idea)
Posted: Mon Sep 15, 2014 3:14 pm
by rmcode
FryDay444 wrote:Haven't had a chance to test this yet, but it doesn't appear like your API shows arguments, does it? If not, any chance of implementing it?
I played around with the custom documentation feature of the lua plugin, but it seems like it is broken - I can't get it to work properly at least.
The maintainer of the API seems to be pretty busy so I'm not sure if it'll ever be fixed
Re: LOVE-IDEA-API (LÖVE API for IntelliJ Idea)
Posted: Sun Jan 11, 2015 7:49 pm
by rmcode
Just a quick heads up that the plugin doesn't work (correctly) under IntelliJ Idea 14. So until the author decides to update I recommend using IntelliJ Idea 13.1.6.
Re: LÖVE-IDEA-Plugin (LÖVE Plugin for IntelliJ Idea)
Posted: Wed Mar 25, 2015 2:19 pm
by rmcode
The plugin is updated to LÖVE version 0.9.2 and now lives at
github.
P.S.: Lua plugin for IntelliJ IDEA now also works with IDEA 14.
Re: LÖVE-IDEA-Plugin (LÖVE Plugin for IntelliJ Idea)
Posted: Fri Mar 27, 2015 5:13 pm
by rmcode
Pushed a minor update adding some previously missing functions.
Code: Select all
- Update love.filesystem module in 0.9.2 plugin.