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 2 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]
#26

Ludicrous Software

[GLOBAL: userInfoPane.html]
Ludicrous Software
  • Enthusiast

  • 80 posts
  • Corona SDK

Hi again,

If you install the SDK to a non-default location, or need to run multiple versions of the SDK, you can now specify the location of the SDK on a per-project basis and the 'Run in Simulator' command will pick up that setting. Grab the latest version of the bundle, and check out this blog post explaining how to set it up:

http://www.ludicroussoftware.com/blog/2011/08/03/custom-corona-sdk-locations-for-textmate-bundle/

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


[TOPIC: post.html]
#27

captain_cowell

[GLOBAL: userInfoPane.html]
captain_cowell
  • Enthusiast

  • 33 posts
  • Corona SDK

Hi Darren,

Just wanted to show my appreciation for the bundle as I have been using it for 8+ months now and loving every minute of it. It really turns TextMate into an amazing IDE for Corona.

One quick question though, is it possible to redirect the cmd-R to iTerm instead of Terminal? I've attempted modifying the bundle here:

[bash]
#!/bin/bash

CORONA_SIM_PATH="/Applications/CoronaSDK/simulator"

# In order for the simulator relaunch to work, "Enable access for assistive devices" must be selected in System Preferences > Universal Access.

osascript <<- APPLESCRIPT

on appIsRunning(appName)
tell application "System Events" to (name of processes) contains appName
end appIsRunning

on selectAppMenuItem(app_name, menu_name, menu_item)
try
-- bring the target application to the front
tell application app_name
activate
end tell
tell application "System Events"
tell process app_name
tell menu bar 1
tell menu bar item menu_name
tell menu menu_name
click menu item menu_item
end tell
end tell
end tell
end tell
end tell
return true
on error error_message
return false
end try
end selectAppMenuItem

if appIsRunning("Corona Simulator") then
selectAppMenuItem("Corona Simulator","File","Relaunch")
else
tell application "Terminal"
do script "$CORONA_SIM_PATH $TM_DIRECTORY"
end tell
end if

APPLESCRIPT
[/bash]

by swapping out the "tell application "Terminal"" to "tell application "iTerm"" but it doesn't appear to work. Do I need to take other steps?

Thanks again for the amazing bundle... cheers
uid: 52208 topic_id: 2269 reply_id: 83864


[TOPIC: post.html]
#28

Jack01

[GLOBAL: userInfoPane.html]
Jack01
  • Enthusiast

  • 86 posts
  • Corona SDK

Hi!

Thanks a lot for the bundle.

Textmate 2 has just been released as open source on GitHub. That means you can use it free!
If you don't feel like compiling yourself the Textmate source, I found a ready to use compiled version here http://burgua.org/post/29064784750/open-source-textmate-2
It works great and even auto updates.

For installing the Corona bundle I did the following. In terminal go to /Applications/TextMate.app/Contents/SharedSupport/Bundles

There enter
git clone https://github.com/osadchuk/Corona-SDK.tmbundle.git

Restart Textmate and it shows up under Bundles.

If git command is not found in terminal, see fix --> http://www.hongkiat.com/blog/mountain-lion-git-fix/
uid: 148841 topic_id: 2269 reply_id: 119868


[TOPIC: post.html]
#29

DiCaver

[GLOBAL: userInfoPane.html]
DiCaver
  • Observer

  • 1 posts
  • Corona SDK

Hi,

I'm trying to put this Textmate Bundle on iPads text editor - Textastic ... http://www.textasticapp.com/v4/manual/lessons/How_can_I_add_my_own_syntax_definitions__themes_and_templates.html ... but no success. I'm Mac beginner, also iPad and Corona, so maybe I don't understand correctly - it is possible or not to combine this great bundle in to Textastic?

Thx, Marko
uid: 127960 topic_id: 2269 reply_id: 122588


[TOPIC: post.html]
#30

Antheor

[GLOBAL: userInfoPane.html]
Antheor
  • Contributor

  • 345 posts
  • Corona SDK

Hi jacco, thx for the tips using textmate2.

Everything worked fine, even the git trick, and my terminal ended with 'done'.

Still, I can't see the corona bundle in the list.

It seems the sdk.tmbundle is installed in my user folder, despite the /Applications/TextMate.app/Contents/SharedSupport/Bundles command in the terminal ...(?)

What should I do ?

( I guess I made a mistake updating to textmate2, I thought it would install a new software but it just crushed my textmate1, now everything is weird, some block comments are not seen thus destroy all my code .....;((
uid: 9328 topic_id: 2269 reply_id: 122846


[TOPIC: post.html]
#31

Jack01

[GLOBAL: userInfoPane.html]
Jack01
  • Enthusiast

  • 86 posts
  • Corona SDK

Hi, maybe try to delete everything, incl. your user settings by using Appcleaner and reinstall.
uid: 148841 topic_id: 2269 reply_id: 122854


[TOPIC: post.html]
#32

Antheor

[GLOBAL: userInfoPane.html]
Antheor
  • Contributor

  • 345 posts
  • Corona SDK

Ok.
I unsinstalled.

I'm under 10.7.4

I have to open the terminal, copy paste
/Applications/TextMate.app/Contents/SharedSupport/Bundles

Then copy paste
git clone https://github.com/osadchuk/Corona-SDK.tmbundle.git

right ?
uid: 9328 topic_id: 2269 reply_id: 122877


[TOPIC: post.html]
#33

Jack01

[GLOBAL: userInfoPane.html]
Jack01
  • Enthusiast

  • 86 posts
  • Corona SDK

No lol, go to the folder /Applications/TextMate.app/Contents/SharedSupport/Bundles by typing in terminal

cd /Applications/TextMate.app/Contents/SharedSupport/Bundles

and than make a clone via the git command.
uid: 148841 topic_id: 2269 reply_id: 122891


[TOPIC: post.html]
#34

Antheor

[GLOBAL: userInfoPane.html]
Antheor
  • Contributor

  • 345 posts
  • Corona SDK

OK, steps are ok now but a strange thing occurs :

After your lines, I open textmate2, and I can see in bundles menu "corona sdk" (but nothing in prefrences/bundles)
I open a .lua file, it asks me to associate with lua, installs 2 bundles, and pooff ! corona sdk bundle disappears ... (nothing in preferences/bundles nothing in bundles menu)

So I made a direct copy of the bundle to Application Support/Textmate/Managed/Bundles, now I can see it :)
uid: 9328 topic_id: 2269 reply_id: 122987


[TOPIC: post.html]
#35

Hendrix000007

[GLOBAL: userInfoPane.html]
Hendrix000007
  • Contributor

  • 177 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

If you´re sitting on a Mac you should sheck the keyboard shortcuts so it´s not reserved for other purposes

You can read up on this here: http://support.apple.com/kb/ht1343



[TOPIC: post.html]
#36

99th.in

[GLOBAL: userInfoPane.html]
99th.in
  • Observer

  • 1 posts
  • Corona SDK

very useful information. thanks a lot for this.

 

thanks

99thin




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