Crippled Autocomplete...

Hi, everyone! 

I have tested all editors listed on «installing Corona SDK» page with autocomplete feature.

Every autocomplete dropdown list shows ONLY methods and ONLY of core libraries such as «display» or «composer» or others.

In other words NO PROPERTIES are shown. 

And, sadly, nor properties, nor methods are NOT shown for your instances, such as

(code tag have no Lua lang)

«

local myText = display.newText( options ) --shown

myText.x = … --insn’t shown

»

If there are problems with instances due language specialties, why it’s not working with «core or base» libraties

Or maybe I haven’t enabled some «option? checker? switch?»

Corona and Lua are both new for me and for every newbie it’s very difficult to keep a whole list of these things in mind without a habbit. So autocomplete feature is at weight of gold to get some quick achieves, it’s 50% of help after main site and it’s anytime available to your view.

Since Lua is case sensitive language I can write thousands of times the right code without errors without understanding why it wouldn’t work.

Also this feature stimulates to type in your code manually, to get pleasure of coding, what is good for remembering, not by copy-pasting some pieces from examples and other sources.

Maybe somebody already have solved/solution? I dag the forum and google and github but found nothing.

Maybe moderator can send this to developers or make a votation interview to see if realy need to users.

Or maybe this «already is/can be» done basing on some fee donation?

P.S. In my small country the education is as poor as my english, so sorry for such explanation of thoughts that can be done better and thankyou in advance for all answers and to people who can prop it ))

I just tested Corona Editor in Sublime Text and when I start typing a property, like display.screenOriginX I get an autocomplete.

You need to make sure you’re using “Corona Lua” as the file type, not just plain Lua. Look in the bottom right hand corner and see what file type Sublime thinks it is:

If it doesn’t say Corona Lua, click on the file type and choose Corona Lua from the list:

I don’t really use other editors like Atom (I have it, but I rarely use it), but they may have a similar mechanism.

Rob

Rob, I think he means that his own methods/properties are not shown in the autocomplete.

For instance, in c# if I define a class called Helper and it has a method called ConvertCurrency(), as soon as I start typing ‘Hel’ I will get a dropdown suggesting possible references, and once I’ve typed “Helper.” I’ll get a list of its methods and properties including ConvertCurrency().

@zombiexp2010 - have you tried ZeroBrane Studio?

This is the number one reason I keep using Visual Studio Code. It is the only one I have found that does this.

A couple of weeks ago, I rechecked ZeroBrane and it does not.

Sublime Text autocompletes strings you have already typed in.

Rob

RoamingGamer gave me a link to github repository of Sublime plugin (because link on Corona site doesn’t work) and there I found info about «CoronaLua» must be selected instead of clean Lua, and yes, I have selected «Corona Lua».

 have you tried ZeroBrane Studio

No, didn’t hear about it! 

This is the number one reason I keep using Visual Studio Code.

 No, VisualStudio with plugin shows in autocomplete little bit more than nothing and only after few letters entered.

I have downgraded from Windows10 to Windows7, installed Corona, Atom and Sublime, installed Corona plugin packages for both editors. And here is what I found:

1.Atom shows ONLY functions (signed «f») and doesn’t show any property nor in general list, nor after point, nor after two starting letters of property but ONLY after you enter three-four letters. So you can’t see whole list of them, you need to know all of them in mind and plugin will complete them only after you entered a half of word. Sadly, but this is bettrer than was. 

  1. Sublime (latest version, it is important) now shows all functions and properties immedietly after core-library name entered. Greatly better than was, but also doesn’t show properties of created instances «object.x, object.scale, object. … and so on» but this I think depends on Lua language specialties, only for core libraries are shown.

Sadly, I prefer Atom and don’t like Sublime. Now I have to retrain to Sublime.

I don’t know what it depends on but the situation is as it is. if I could find the root of the problem or knew what I would face beforehand I would not post here.

Thank you about answers!

Rob, very clear and understandable answer, can be posted in Wiki )

I just tested Corona Editor in Sublime Text and when I start typing a property, like display.screenOriginX I get an autocomplete.

You need to make sure you’re using “Corona Lua” as the file type, not just plain Lua. Look in the bottom right hand corner and see what file type Sublime thinks it is:

If it doesn’t say Corona Lua, click on the file type and choose Corona Lua from the list:

I don’t really use other editors like Atom (I have it, but I rarely use it), but they may have a similar mechanism.

Rob

Rob, I think he means that his own methods/properties are not shown in the autocomplete.

For instance, in c# if I define a class called Helper and it has a method called ConvertCurrency(), as soon as I start typing ‘Hel’ I will get a dropdown suggesting possible references, and once I’ve typed “Helper.” I’ll get a list of its methods and properties including ConvertCurrency().

@zombiexp2010 - have you tried ZeroBrane Studio?

This is the number one reason I keep using Visual Studio Code. It is the only one I have found that does this.

A couple of weeks ago, I rechecked ZeroBrane and it does not.

Sublime Text autocompletes strings you have already typed in.

Rob

RoamingGamer gave me a link to github repository of Sublime plugin (because link on Corona site doesn’t work) and there I found info about «CoronaLua» must be selected instead of clean Lua, and yes, I have selected «Corona Lua».

 have you tried ZeroBrane Studio

No, didn’t hear about it! 

This is the number one reason I keep using Visual Studio Code.

 No, VisualStudio with plugin shows in autocomplete little bit more than nothing and only after few letters entered.

I have downgraded from Windows10 to Windows7, installed Corona, Atom and Sublime, installed Corona plugin packages for both editors. And here is what I found:

1.Atom shows ONLY functions (signed «f») and doesn’t show any property nor in general list, nor after point, nor after two starting letters of property but ONLY after you enter three-four letters. So you can’t see whole list of them, you need to know all of them in mind and plugin will complete them only after you entered a half of word. Sadly, but this is bettrer than was. 

  1. Sublime (latest version, it is important) now shows all functions and properties immedietly after core-library name entered. Greatly better than was, but also doesn’t show properties of created instances «object.x, object.scale, object. … and so on» but this I think depends on Lua language specialties, only for core libraries are shown.

Sadly, I prefer Atom and don’t like Sublime. Now I have to retrain to Sublime.

I don’t know what it depends on but the situation is as it is. if I could find the root of the problem or knew what I would face beforehand I would not post here.

Thank you about answers!

Rob, very clear and understandable answer, can be posted in Wiki )