Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

From The Blog: Featured tool: Corona Plugin for Xcode
Started by CoronaBot May 11 2017 11:34 AM

30 replies to this topic
[TOPIC CONTROLS]
Page 1 of 2 1 2
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

CoronaBot

[GLOBAL: userInfoPane.html]
CoronaBot
  • Contributor

  • 324 posts
  • Corona Staff

Many Corona developers — especially those who don’t use Corona Enterprise — tend to view Apple’s Xcode as daunting, overwhelming, and perhaps even a bit scary. However, for iOS/macOS, Xcode is an essential development tool that works alongside Corona’s core (even if you never use the Xcode application, Corona is using it!).

For those who do use Xcode, even just for the simplicity of using its “Devices” window to install Corona-built apps onto your devices, you may be interested in the powerful Corona Plugin for Xcode by Jacob Nielsen.

Corona Plugin for Xcode

The Corona Plugin for Xcode adds a vast array of new features to Xcode, turning it into an easy-to-use, smooth, and efficient editor for Corona projects. With this plugin, you get these features and more:

  • Edit your pure Lua-based Corona projects directly inside Xcode — no “native” coding or development experience required!
  • Syntax highlighting for Corona/Lua.
  • Auto-completion library calls, keywords, constants, etc.
  • Corona API documentation look-up from selected text.
  • Snippets declarations, loops, conditions, etc.
  • Corona project and file templates built into Xcode.
  • Custom behaviors and keybinding set for Corona.

Plays well with Enterprise too!

This plugin is also a great addition if you are working with Corona Enterprise. In this case, you will achieve an excellent workflow by being able to do both Corona/Lua code and native code side-by-side in Xcode.

Affordable and optimal

The Corona Plugin for Xcode is available for $19.00 in the Corona Marketplace, making it an affordable alternative to higher-priced IDEs — and if you’re a Corona developer using macOS, you already have Xcode (it’s free).

Atop the features listed above, this plugin can simplify your development environment by letting you use one application for editing Corona code, installing/updating apps on devices, and letting you view device-specific debugging output in the Xcode “Devices” window.

Check out the Corona Plugin for Xcode and see how easy Xcode can be!


View the full article

[TOPIC: post.html]
#2

kennw

[GLOBAL: userInfoPane.html]
kennw
  • Contributor

  • 296 posts
  • Corona SDK

Purchased, download and am trying to install this, but when I open the .dmg, nothing happens... I don't get the installation screen...  



[TOPIC: post.html]
#3

kennw

[GLOBAL: userInfoPane.html]
kennw
  • Contributor

  • 296 posts
  • Corona SDK

Nevermind -- for some reason it was mounting the DMG but not opening anything.  I'm able to go to the mount and run the installer. :-)



[TOPIC: post.html]
#4

simon.natt

[GLOBAL: userInfoPane.html]
simon.natt
  • Contributor

  • 126 posts
  • Corona SDK

This sounds/looks great will defiantly check it out in the near future.



[TOPIC: post.html]
#5

graham07

[GLOBAL: userInfoPane.html]
graham07
  • Contributor

  • 187 posts
  • Corona SDK

I have to say, great job on the video, based upon that alone I Purchased this plugin and I look forward to using it!



[TOPIC: post.html]
#6

sunmils

[GLOBAL: userInfoPane.html]
sunmils
  • Contributor

  • 195 posts
  • Corona SDK

I guess debugging isn't possible?



[TOPIC: post.html]
#7

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 481 posts
  • Enterprise

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)


Edited by ojnab, 10 August 2017 - 04:41 AM.


[TOPIC: post.html]
#8

Falcon777

[GLOBAL: userInfoPane.html]
Falcon777
  • Contributor

  • 343 posts
  • Corona SDK

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.

[TOPIC: post.html]
#9

nick_sherman

[GLOBAL: userInfoPane.html]
nick_sherman
  • Corona Geek

  • 1,258 posts
  • Corona SDK

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?



[TOPIC: post.html]
#10

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 481 posts
  • Enterprise

@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 ;)

 

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.


  • Falcon777 likes this

[TOPIC: post.html]
#11

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 481 posts
  • Enterprise

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

 

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



[TOPIC: post.html]
#12

nick_sherman

[GLOBAL: userInfoPane.html]
nick_sherman
  • Corona Geek

  • 1,258 posts
  • Corona SDK

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 :)



[TOPIC: post.html]
#13

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 481 posts
  • Enterprise

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 :)



[TOPIC: post.html]
#14

nick_sherman

[GLOBAL: userInfoPane.html]
nick_sherman
  • Corona Geek

  • 1,258 posts
  • Corona SDK

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



[TOPIC: post.html]
#15

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 481 posts
  • Enterprise

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

 

 

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



[TOPIC: post.html]
#16

Falcon777

[GLOBAL: userInfoPane.html]
Falcon777
  • Contributor

  • 343 posts
  • Corona SDK

@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 ;)
 
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.


Noted. Thanks!

[TOPIC: post.html]
#17

usmanmughal.uog

[GLOBAL: userInfoPane.html]
usmanmughal.uog
  • Enthusiast

  • 30 posts
  • Corona SDK

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

Regards,
Usman Mughal


  • ojnab likes this

[TOPIC: post.html]
#18

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 481 posts
  • Enterprise

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.


  • graham07 likes this

[TOPIC: post.html]
#19

graham07

[GLOBAL: userInfoPane.html]
graham07
  • Contributor

  • 187 posts
  • Corona SDK

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 :)

 

 

OK, I have to confess that I just discovered this  :D  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 :)


  • ojnab likes this

[TOPIC: post.html]
#20

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 481 posts
  • Enterprise

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'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  :)

 

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. 



[TOPIC: post.html]
#21

Vince_

[GLOBAL: userInfoPane.html]
Vince_
  • Contributor

  • 293 posts
  • Enterprise

@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



[TOPIC: post.html]
#22

graham07

[GLOBAL: userInfoPane.html]
graham07
  • Contributor

  • 187 posts
  • Corona SDK

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?



[TOPIC: post.html]
#23

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 481 posts
  • Enterprise

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...



[TOPIC: post.html]
#24

paulclinger

[GLOBAL: userInfoPane.html]
paulclinger
  • Enthusiast

  • 75 posts
  • Corona SDK

@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.



[TOPIC: post.html]
#25

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 481 posts
  • Enterprise

Here is a video demonstration of the Corona Debugger that will be part of the next release of the Corona Plugin for Xcode.

 

The debugger is being beta tested right now and will be released pretty soon!

Follow this thread to get notified about the update.

 




[topic_controls]
Page 1 of 2 1 2
 
[/topic_controls]