Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Corona Bundle for TextMate
Started by Ludicrous Software Sep 29 2010 03:08 AM

- - - - -
35 replies to this topic
[TOPIC CONTROLS]
Page 1 of 2 1 2
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Ludicrous Software

[GLOBAL: userInfoPane.html]
Ludicrous Software
  • Enthusiast

  • 80 posts
  • Corona SDK

Hi,

If you use TextMate to code your Corona apps, you may be interested in checking out the Corona Bundle for TextMate that I've made available. It basically extends the existing Lua bundle to add support for Corona-specific keywords in autocomplete, as well as a number of snippets for common Corona functions. I'm adding more keywords and snippets as I go along. You can get more info here:

http://www.ludicroussoftware.com/corona/corona-bundle-for-textmate/

Feedback/suggestions are welcome!

Thanks!
Darren
uid: 1294 topic_id: 2269 reply_id: 302269


[TOPIC: post.html]
#2

Magenda

[GLOBAL: userInfoPane.html]
Magenda
  • Contributor

  • 427 posts
  • Corona SDK

Darren, you are my hero! :)

I have just abandoned Xcode and I am getting used to TextMate, which has some excellent features for code authoring. What intrigued me mostly in TM was the code snippets feature, which I suspected would give a solution for autocompletion in Corona projects.

My intention was to write snippets for commonly used code blocks (such as event handlers) as a generic base which I could then extend with specific-purpose code. However, I am slow at this, as I am learning Lua at the same time :)

Your bundle, is going to help me very much!
I am also going to share whatever useful comes out from my attempts.

Thanks again!
uid: 7356 topic_id: 2269 reply_id: 6838


[TOPIC: post.html]
#3

Magenda

[GLOBAL: userInfoPane.html]
Magenda
  • Contributor

  • 427 posts
  • Corona SDK

Just to add that command-R is not working here for some reason. I've installed Corona where the tmcommand file also says.
uid: 7356 topic_id: 2269 reply_id: 6840


[TOPIC: post.html]
#4

Ludicrous Software

[GLOBAL: userInfoPane.html]
Ludicrous Software
  • Enthusiast

  • 80 posts
  • Corona SDK

Hi Magenda,

Not sure why it wouldn't be working for you, but in any event I'll be making some changes to that part of the bundle over the weekend. Perhaps the new version will fix the problem you're experiencing.

Thanks,
Darren
uid: 1294 topic_id: 2269 reply_id: 6885


[TOPIC: post.html]
#5

Danro

[GLOBAL: userInfoPane.html]
Danro
  • Observer

  • 2 posts
  • Guests

Just wanted to give you guys an update. I've been helping out on the TextMate bundle, and you can find my branch here on GitHub:

http://github.com/danro/Corona-SDK.tmbundle

I've reworked the "Run Simulator" command, so that it both launches and reloads the current simulator using a single command.
uid: 9864 topic_id: 2269 reply_id: 7439


[TOPIC: post.html]
#6

IndeedYes08

[GLOBAL: userInfoPane.html]
IndeedYes08
  • Enthusiast

  • 95 posts
  • Guests

I am having an issue installing the bundle.

TextMate is not in my Application Support folder (looked in both, no where to be found).

I am currently only using the trial version and would like to know if that is my problem? Not sure what im missing!

Thanks in advance!
uid: 9968 topic_id: 2269 reply_id: 8656


[TOPIC: post.html]
#7

Ludicrous Software

[GLOBAL: userInfoPane.html]
Ludicrous Software
  • Enthusiast

  • 80 posts
  • Corona SDK

If there's no TextMate/Bundles directory in your Application Support directory, you can create those manually. TextMate should pick up any bundles installed in that directory when it starts up.

Thanks,
Darren
uid: 1294 topic_id: 2269 reply_id: 8778


[TOPIC: post.html]
#8

dweezil

[GLOBAL: userInfoPane.html]
dweezil
  • Contributor

  • 568 posts
  • Corona SDK

Running the simulator does work for me either. I get
Last login: Sun Nov 21 11:40:21 on ttys003
/Applications/CoronaSDK/simulator /Users/rupert/Documents/dev/KeePeeUppy/source
Rupert-Hawkess-Mac-mini:~ rupert$ /Applications/CoronaSDK/simulator /Users/rupert/Documents/dev/KeePeeUppy/source
-bash: /Applications/CoronaSDK/simulator: No such file or directory
Rupert-Hawkess-Mac-mini:~ rupert$
uid: 9371 topic_id: 2269 reply_id: 11691


[TOPIC: post.html]
#9

ksan

[GLOBAL: userInfoPane.html]
ksan
  • Corona Geek

  • 2,795 posts
  • Corona SDK

Command-R triggers XCode for me since there is a XCode Bundle provided by TextMate. It appears that the bundles provided by TextMate have higher priority over user supplied ones. I realize I can delete the XCode Bundle but I do not wish to do this yet in case I occasionally use XCode as well. Will need to figure out how to disable a bundle or change order of prioritization. Has anyone been able to resolve this issue? Thanks

Edit - I found a way to Hide a bundle using the Bundle Editor - Filter option and now Command-R triggers the Corona SDK but it just brings the SDK up and does not start the app as its seen in some of the ANSCA demos. Ok, one step at a time.
uid: 11904 topic_id: 2269 reply_id: 13054


[TOPIC: post.html]
#10

Ludicrous Software

[GLOBAL: userInfoPane.html]
Ludicrous Software
  • Enthusiast

  • 80 posts
  • Corona SDK

Hi ksan,

By any chance does the path to your project directory contain a space in it? e.g.

"/path/to/folder/Hello World" ?

It looks like there's a bug in the simulator launch code caused by spaces in the directory names. The easiest fix is to remove the spaces. I'm looking into the bug right now, and will post a fix when I have one.

Thanks,
Darren
uid: 1294 topic_id: 2269 reply_id: 13067


[TOPIC: post.html]
#11

ksan

[GLOBAL: userInfoPane.html]
ksan
  • Corona Geek

  • 2,795 posts
  • Corona SDK

Hi Darren,

Thanks for your quick response. You are absolutely right! I did have spaces in there. I tried Command-R on a project that does not have spaces in the path and it worked as expected. Brilliant. Thanks for all your hard work.

Regards,
KS
uid: 11904 topic_id: 2269 reply_id: 13092


[TOPIC: post.html]
#12

jhocking

[GLOBAL: userInfoPane.html]
jhocking
  • Corona Geek

  • 1,223 posts
  • Guests

Has anyone done a Corona extension like this for TextWrangler? If not I might do one. I don't know if TextWrangler does auto-complete and anyway I don't care, but having syntax highlighting for Corona commands would be really helpful.
uid: 12108 topic_id: 2269 reply_id: 13883


[TOPIC: post.html]
#13

Ludicrous Software

[GLOBAL: userInfoPane.html]
Ludicrous Software
  • Enthusiast

  • 80 posts
  • Corona SDK

Just a quick update: I've created a dedicated page for the TextMate bundle where I'm posting news of updates to the bundle, etc.

Latest additions include code colouring - if you've tried it out let me know what you think, or if I missed any keywords that should get the code colouring treatment.

Thanks,
Darren

uid: 1294 topic_id: 2269 reply_id: 16410


[TOPIC: post.html]
#14

Ludicrous Software

[GLOBAL: userInfoPane.html]
Ludicrous Software
  • Enthusiast

  • 80 posts
  • Corona SDK

Hi Everyone,

Just wanted to let you know that I've just finished a whole bunch of updates to the bundle:


  • Updated some of the snippets that were out-of-date due to changes in the Corona SDK.

  • Added a bunch of new snippets, mainly for the media package

  • Started to organize the bundle menu into a set of submenus, grouping snippets by package.

  • Added parentheses to many of the functions in the completions list if the function does not take any arguments (e.g. the completion is now 'stopTuner()' instead of 'stopTuner', so you don't have to type those parentheses anymore).

  • Sorted the completion list alphabetically, and put full package paths at the end of the completion list.



As I mentioned earlier, visit this page for all the bundle info you could possibly want.

Thanks,
Darren
uid: 1294 topic_id: 2269 reply_id: 16725


[TOPIC: post.html]
#15

PeterBailey

[GLOBAL: userInfoPane.html]
PeterBailey
  • Enthusiast

  • 36 posts
  • Guests

Thanks a lot Darren. This bundle is great. Much appreciated.
uid: 13932 topic_id: 2269 reply_id: 16943


[TOPIC: post.html]
#16

khovanes

[GLOBAL: userInfoPane.html]
khovanes
  • Observer

  • 1 posts
  • Guests

It appears there might be a naming issue with the Simulator path.... I had to move the last version I pulled from Anscamobile from the .243 directory to the path specified within the bundle (or vice versa) /Applications/CoronaSDK/simulator
uid: 16550 topic_id: 2269 reply_id: 18843


[TOPIC: post.html]
#17

Ludicrous Software

[GLOBAL: userInfoPane.html]
Ludicrous Software
  • Enthusiast

  • 80 posts
  • Corona SDK

That's right. At the moment, the bundle doesn't support setting an environment variable for the SDK path. It's on the to-do list, though.

Darren
uid: 1294 topic_id: 2269 reply_id: 18903


[TOPIC: post.html]
#18

txmarsh

[GLOBAL: userInfoPane.html]
txmarsh
  • Contributor

  • 117 posts
  • Guests

Sorry for the newbie question but would it be complex to port this over to textwrangler? Are they sufficiently different programs that this would not be possible?
thanks!
uid: 16901 topic_id: 2269 reply_id: 23813


[TOPIC: post.html]
#19

Ludicrous Software

[GLOBAL: userInfoPane.html]
Ludicrous Software
  • Enthusiast

  • 80 posts
  • Corona SDK

@txmarsh: no idea, as I don't know what kind of bundle (or whatever it might be called) support TextWrangler has. The TextMate bundle is open source, so feel free to grab it from GitHub and give it a try.

Thanks,
Darren
uid: 1294 topic_id: 2269 reply_id: 23856


[TOPIC: post.html]
#20

PeterBailey

[GLOBAL: userInfoPane.html]
PeterBailey
  • Enthusiast

  • 36 posts
  • Guests

Hey txmarsh.

I don't use textwrangler, but the link here says it supports syntax highlighting. Maybe that is what you want?

http://lua-users.org/wiki/LuaEditorSupport (scroll about 1/2 down page)

Cheers,

Peter
uid: 13932 topic_id: 2269 reply_id: 23857


[TOPIC: post.html]
#21

Ludicrous Software

[GLOBAL: userInfoPane.html]
Ludicrous Software
  • Enthusiast

  • 80 posts
  • Corona SDK

Hi All,

I've added some very simple templates and snippets for the various audio methods to the bundle. Slightly more detail here.

Thanks,
Darren
uid: 1294 topic_id: 2269 reply_id: 25975


[TOPIC: post.html]
#22

PeterBailey

[GLOBAL: userInfoPane.html]
PeterBailey
  • Enthusiast

  • 36 posts
  • Guests

Cool. Thanks again Darren.
uid: 13932 topic_id: 2269 reply_id: 25984


[TOPIC: post.html]
#23

acrowne

[GLOBAL: userInfoPane.html]
acrowne
  • Observer

  • 16 posts
  • Guests

I am trying to use the Check Syntax button in your bundle and it gives an error that it can't locate luac. I can't either, and I'm wondering if that is something I have to install separately.

Thanks,
Adrian
uid: 3671 topic_id: 2269 reply_id: 29230


[TOPIC: post.html]
#24

traustitj

[GLOBAL: userInfoPane.html]
traustitj
  • Enthusiast

  • 70 posts
  • Corona SDK

Where I pick which bundle I want to use, I can't see the Corona SDK, but in the Action menu I do, so I can never use any ESC code completion, any ideas ?

I did install the Textmate Lua bundle, but I have since removed it, but Lua is still there.

Not understanding, anyone ?
uid: 61610 topic_id: 2269 reply_id: 37371


[TOPIC: post.html]
#25

Ludicrous Software

[GLOBAL: userInfoPane.html]
Ludicrous Software
  • Enthusiast

  • 80 posts
  • Corona SDK

Hey everyone,

Just added a bunch of new stuff to the bundle. Check out this page for the details:

www.ludicroussoftware.com/corona-textmate-bundle#29July2011

Thanks!
Darren
uid: 1294 topic_id: 2269 reply_id: 47894



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