From The Blog: Featured tool: Corona Plugin for Xcode

I guess debugging isn’t possible?

No I didn’t manage to implement the debugger yet.
I am planning on investigating the possibilities when I find the time for it.
I guess it should be possible.

(edit: a Corona debugger was added in version 1.5)

Will I be able to install this plugin on all the Macs that I own with a single purchase? And also receive all future updates? Thanks.

Interesting. After five years I still haven’t found an IDE I like for Corona, still using an old one called IndeED because I can’t find one that does the basics as well.

When using MonoDevelop for Unity is a comparative pleasure you know there’s a definite gap in the market…

Does xCode support a list of functions docked to the right side?

@Falcon777

It is a single-user license but you can install the plugin on all the Macs you use.

All future updates are included, but I will preserve the right to raise the price if I do a major update - so this will not affect people who already bought the plugin :wink:

Regarding updates: since this is a dmg installer the plugin will not update automatically like other plugins in the marketplace.

You will have to manually download the update and install it over the previous version. I will post update news here, so please follow this thread to get notified when an update is available.

I am not sure what you mean. I never used MonoDevelop. Do you mean a list of the functions you defined in your code?

Yep, just a simple list of the functions in that file, that you can click on to go straight there. You’d be amazed how many IDEs don’t have this, or if they do, won’t let you move it where you want, or don’t see functions defined by scene:create or m.create.

I’m set in my ways, I need the project file tree on the left, full function list on the right and console log underneath :slight_smile:

Yes it has a function navigator. I use it all the time.

It is not located in the right side though.

still.jpg

You can find it by clicking at the selection part under the popup showing on the still above. The shortcut for the popup is  ctrl 6. You can use the arrow keys to select a function and hit enter to navigate to it. I prefer not to touch the mouse at all when programming… so it fits my ways :slight_smile:

Thanks - unfortunately I need a persistent list in the exact place I expect it. Not a fan of keyboard shortcuts either :frowning:

In that case I guess you are stuck with what you’ve got… good luck :)

[quote name=“ojnab” post=“357684” timestamp=“1495024341”]@Falcon777   It is a single-user license but you can install the plugin on all the Macs you use.   All future updates are included, but I will preserve the right to raise the price if I do a major update - so this will not affect people who already bought the plugin :wink:   Regarding updates: since this is a dmg installer the plugin will not update automatically like other plugins in the marketplace.   You will have to manually download the update and install it over the previous version. I will post update news here, so please follow this thread to get notified when an update is available.[/quote] Noted. Thanks!

Great Plugin, I just purchased and installed and using it for my existing projects. Same like an Swift project to me. :slight_smile: Will explore it more.

Regards,
Usman Mughal

Please notice that the Corona Plugin for Xcode has been updated to v.1.3.

Since it is a dmg installer the plugin will not update automatically like other plugins in the marketplace.

You will have to manually download the update and install it over the previous version.

 

The update contains a couple of fixes: 

  1. A bug in the “Import Corona Project” behavior script making it unable to import projects with spaces in path/project folder names.

  2. A workaround for a lua filetype(uti) hijack done by Textwrangler/BBEdit if one of these were installed on the system before the plugin. (Resulting in Xcode not being able to automatically recognise and syntax highlight lua files.)

 

Thanks to Graham Scott for reporting these issues and helping me test the fixes.

OK, I have to confess that I just discovered this  :smiley:  and boy does it make navigation faster in Xcode.

As a FYI, I just installed the plugin on another of my Macs and it worked flawlessly and that one has had a lot of stuff installed previously! 

I’m less concerned right now about the debugger, as I don’t use it :).  I’m a larger user of either ‘print(x)’ or my own debug function. Not saying thats a better way, but thats how I’ve managed it with Sublime and everything.

I’ll continue using the Xcode plugin as my primary IDE and I’ll let you know if any other issues crop up or ideas for that matter :slight_smile:

Great to hear and thanks again for your reports and help!

I don’t really use the debugger either but I have had a lot of requests for it so now I am looking at the possibilities to implement it. 

@nick sherman

Have you tried ZeroBrane Studio? It has a debugger, file list, and function navigation window. The only caveat with the function nav window is it will need to be a floating popout, but you can drag it over to the right side. It supports “:” and “.” notation and even anonymous functions. It supports remote debugging (debugging on the device with output and such sent to the console via wifi, even lets you set breakpoints), but I have found that this doesn’t work with Corona Live Server. It also lets you customize the look via a config file.

Here’s a screenshot of my setup:

3HDsuXh.png

I had noticed that the Corona docs wasn’t working. I hit the key, I see the behaviour ‘icon’ pop up, but Safari doesn’t open to the context help.

I can launch the browser and go look up what I want, but it would be good to get it to work.

I am running the latest release of the Xcode plugin.
Thoughts?

FYI:

I recommend updating to Xcode 9.1 when using the Corona Plugin for Xcode.

Xcode 9.0 had a bug that - in some cases - forced annoying (swift style) indentation on lua code.

Apple has fixed that in v.9.1.

Remember to disable “Automatically indent based on syntax” under Xcode > Preferences > Text Editing > Indentation

if you see strange indentation behavior.

Thanks Graham

Yes I see the problem…

Something broke in the documentation lookup script with the latest version of Xcode or MacOS. I updated both today and I am not sure which one to blame. I fixed the problem and it will be available in the next version of the plugin.

I will send you a fix by email later on…

@Vince,

> The only caveat with the function nav window is it will need to be a floating popout, but you can drag it over to the right side.

Thank you for sharing your setup. One quick clarification: the nav window is not limited to be a floating popout; if you move it to the right boundary of the IDE window, a blue shade should appear, which shows when the window will be docks when you release the mouse. You can play with the docking location as you can make it snap in different configurations (next to the main panel or along the entire right border and so on).

Also, Cmd/Ctrl-B opens fuzzy search for symbols across all files in a project, which provides a convenient way to find a function and jump to its location.

Paul.