My Work On a Lua IDE

So you did this?

https://bitbucket.org/sylvanaar2/lua-for-idea/wiki/Installing_a_Custom_API

If you did - it should work. You can try File|Invalidate Caches to see if that helps.

I just tried it myself to verify that it was working. I typed “disp” and got all the completions for display.whatever [import]uid: 846 topic_id: 2200 reply_id: 47298[/import]

yep done that and the external library is listed.

I can get the first part of the code completion to work, ie i type:

“di”

code completion pops up with “display” (the only thing listed)

there are no options for display.newGroup() etc [import]uid: 43961 topic_id: 2200 reply_id: 47299[/import]

Ok I invalidated the caches as you suggested and it now fully completes.

Thanks for your help this really useful! [import]uid: 43961 topic_id: 2200 reply_id: 47300[/import]

oop one last thing like magenda I can’t get the function arguments/parameters to show in the tooltips

for instance the tooltip for display.newRect()

shows [Corona API] display.newRect()

It seems like the properties file in the zip file you pointed me to has the arguments in, so I don’t think I need to download the files that you pointed magenda to…

************** edit ******************

Ok I’ve just spotted that not all of the properties are listed for every command, so the ones that are included are working correctly.

Thanks again!
[import]uid: 43961 topic_id: 2200 reply_id: 47303[/import]

Any tips on how to set this up on a Mac? Do I need to do a separate Lua install? I am trying to find my Lua SKD, but I dont see it, I thought maybe it came with Corona? [import]uid: 83074 topic_id: 2200 reply_id: 50440[/import]

It doesn’t come with Corona, I ended up downloading the Lua SDK myself and putting it my Documents directory. You may not need to do that as it looks like the Mac already comes with Lua in /usr/local/bin but maybe I couldn’t find it at the time. [import]uid: 8692 topic_id: 2200 reply_id: 50445[/import]

You’ve done great work but I can’t use it due to a limitation in the editor itself. Maybe I’m missing it. TextMate allows you to group individual files in “virtual directories” or groups. Not sure how else to explain it. Basically, I have groups called spritesheets, extern (e.g. director goes here), objects, enemies, powerups, config, etc… These aren’t actually directories on the filesystem though which is nice since all lua files need to be in the base folder. IntelliJ only allows you to group files in directories and these are actual directories on the file system. Is there a way to create file groups in the project file itself rather than directories? [import]uid: 19383 topic_id: 2200 reply_id: 50451[/import]

Not that I am aware of.

That doesn’t mean there isn’t a way to accomplish what you want, I just don’t know offhand how to do what you want. [import]uid: 846 topic_id: 2200 reply_id: 50453[/import]

Hi,

How this page http://developer.anscamobile.com/resources/apis/ can be used to generate those files:
corona_api.lua
corona_api.doclua
api-reference.html

or did I missed something in the tutorials ?

Does this information is processed somewhere by 3-rd person ?
This is done for CPM quite often but format of text is different.

Regards
Tom [import]uid: 99683 topic_id: 2200 reply_id: 68810[/import]

Well there are already some, and it would probably be pretty easy to take the CPM files and turn them into the format I am using. Anyone could do it, it isnt complicated at all. [import]uid: 846 topic_id: 2200 reply_id: 68826[/import]

Do You mean for all three files ? Including docs ?

Do You have any tool which might be helpful to automatize this task a bit ?

Regards
Tom [import]uid: 99683 topic_id: 2200 reply_id: 68913[/import]

I don’t have a tool to do it. It is just a matter of using grep really.

For docs it is slightly more complicated since Ansca’s docs are so inconsistent. You have to be more careful for that bit.

if you do get around to writing them, please let me know I’ll give you commit rights to the repository. [import]uid: 846 topic_id: 2200 reply_id: 68924[/import]

Just want to say that you did great work with Lua plugin for IDEA. It is so packed with features that easily can be turned into CoronaIDE. This plugin deserves its own forum here like Director Class or CPM. The more people are using it, the more tricks can be learned. IDEA + Lua plugin are great combo: multiplatform, inteligent ide, all features that you need, code history, refactoring…

Thank you again, Akhtar [import]uid: 101952 topic_id: 2200 reply_id: 81215[/import]

I agree.
So when we are starting?
I am not that deep into that git thing, but until I learn it, I can do the donkey work of organizing material etc… [import]uid: 101952 topic_id: 2200 reply_id: 81224[/import]

OK, not sure what to do here, and I don’t think I’m a dummy, but I am going round in circles!

I am using Intellij IDEA. I have added the LUA plugin via the Settings/Plugins page and all seems OK with that.

I am having problems trying to get the Corona SDK support added.

I went to https://bitbucket.org/sylvanaar2/idlua-sdk-corona/wiki/Home and downloaded sylvanaar2-idlua-sdk-corona-55c93a453c65.zip. This contains the files corona_api.lua, corona_api.doclua, api-reference.html and .gh_archival.txt.

I also went to https://bitbucket.org/sylvanaar2/lua-for-idea/wiki/Corona%20API%20Support and downloaded corona_api.zip which contains the files corona_api.lua and corona_api.properties.

Neither seems to work correctly with Intellij IDEA.

Comparing corona_api.lua from the first link to the second, the first is missing a lot of stuff (io, math, os, string, table etc.) Also, for example, the second file has only two physics.xxx entries, whereas the first file has twelve.

So, to summarize, I am confused!

I want to create Corona specific Lua files using Intellij IDEA, so which file should I download to give me that functionality.

HELP!!

The corona_api.lua from the first link doesn’t appear to have any of the Corona [import]uid: 19540 topic_id: 2200 reply_id: 82490[/import]

works quite well for custom or standard libraries

http://imageshack.us/photo/my-images/821/screencxu.png/
http://imageshack.us/photo/my-images/853/screen2aw.png/

I think we need to update documentation in this format rather then original because this way we have 3 in 1:

  1. control + left mouse button over function / table for quick info
  2. control + space for autocomplete
  3. luadoc help

Major disadvantage is the need to use globals for modules

  
Bmf ={}  
  
--- This is   
-- @param param1 nana  
-- @param param2 nanaan  
-- @return something  
function Bmf.doThis(param1, param2)  
  
 return 10  
end  
  

From my side i have 3 questions to author of the plugin:

  1. can we somehow upgrade format of text in documentation window on the right ? at least some bolding / tabing
  2. can we improve luadoc mechanism for fields / tables not only for functions
  3. simple way for running Corona simulator from IDE level for both Mac and Windows platforms (including focus + clearing terminal + checking if simulator already is runing)

Regards
Tom [import]uid: 111283 topic_id: 2200 reply_id: 85364[/import]

Team,

Author made large update from last time so its worth to look at it.

In case of problems with print() to console.
– set debuger
io.output():setvbuf(‘no’)
solves the problem.

Any idea how to manage to run Corona Simulator only once ? But on MacOs ? There is VB script for windows but need same script for mac in AS.

Regards,
Tom [import]uid: 111283 topic_id: 2200 reply_id: 92002[/import]

For some reason, the lattest version of this plugin doesn’t work as it used to…
There are some strange errors:
[import]uid: 101952 topic_id: 2200 reply_id: 94153[/import]

Previous bug was fixed in new release of the plugin.

[Update]
Unfortunately, this bug is still there :frowning: [import]uid: 101952 topic_id: 2200 reply_id: 96845[/import]