Corona Trial Expired - TextMate Corona TMBundle "Command R" fails

Ok, so I’m new to Corona. Been a Flash developer for 10 years. 5 weeks ago, I downloaded the trial and also downloaded TextMate. Added the Corona TMBundle for keystroke help as well. Everything was going well until my TextMate expired earlier this week. I forked over the money to purchase the TextMate. Put the code in and fantastic, TextMate is back in business! Only problem, when I use the “Command R” to open the Simulator, it reports back this message:

The document “Corona” could not be opened. Corona Simulator cannot open files of this type.

Then this error occurs:

The document “HelloWorld” could not be opened. Corona Simulator cannot open files of this type.

I removed TextMate, Corona SDK, and the Corona TMBundle from my machine and re-installed and the error still occurs. I am still in the design phase for my app while testing Corona to make sure this is the best way to go. Am I at the point where I need to purchase a Corona license?

Is this a breakdown from the TMBundle calling the Corona Simulator?

I can open the Corona Simulator and run the main.lua file but it would be really nice to run it from TextMate.

(BY THE WAY, GREAT PRODUCT!!!)

Brian Caldwell
altobanor@gmail.com [import]uid: 71093 topic_id: 13042 reply_id: 313042[/import]

Okay follow up:

I’m sorry, I think this is my not understanding a few things. I said that I could not run the main.lua file. Well, I can run an old version of it but, a new version in a different directory fails to run. I might need some help understanding how to connect different projects to the Corona Simulator.

Any help would be greatly appreciated!!!

Brian Caldwell
Altobanor@gmail.com [import]uid: 71093 topic_id: 13042 reply_id: 47893[/import]

Hi Brian,

I maintain the Corona TextMate bundle. In my experience, the only time that error message occurs is when there’s a space somewhere in the path to main.lua. For example:

/path/to/myapp/main.lua

will work just fine. But:

/path/to/my app/main.lua

will throw the error you’re seeing, where in this example the Simulator thinks that ‘my’ is the name of the document that should be run (basically, the Simulator sees the space as the end of the path to main.lua, so it’s trying to run /path/to/my instead of the main.lua file you want it to run).

Hope that solves it for you. If not, I’d need more details on your set-up/configuration to try to figure out what’s going on.

Thanks,
darren [import]uid: 1294 topic_id: 13042 reply_id: 47896[/import]

THANK YOU DARREN!!!

Well, I read somewhere about that and didn’t put 2 and 2 together! (or I got 3!) When I created a new development directory structure, my top folder became, “Corona Development”

It’s all fixed now!

Thank you all!

Brian Caldwell
altobanor@gmail.com [import]uid: 71093 topic_id: 13042 reply_id: 47899[/import]

Hi Darren,

Like Brian - I’m an experienced Flash developer who is new to the Corona SDK but also new to the whole Mac experience (having switched from a PC only a few weeks ago). I seem to be having the same problem of not being able to use CMD + R to launch my main.lua files in the Corona simulator.

I’ve purchased a license of TextMate and used git to import the TextMate bundle to the Library/Application Support/TextMate/Bundles folder. I had to create a Bundles folder because it wasn’t there but it appears to be working - syntax highlighting, auto complete using escape and tab to cycle through auto complete properties. So thank you :slight_smile:

When Corona is closed and I CMD + R it displays an error message “The document iPhone could not be opened. Corona Simulator cannot open files of this type”. A terminal window opens and it executes /Applications/CoronaSDK/simulator -project -skin iPhone. This happens for all main.lua files I try to launch - regardless of where they are.

My working folder is /Users/Topher/Documents/test so there aren’t any spaces in my folder names which appears to be Brian’s problem.

I’m just curious to know if you’ve come across this problem - if it’s just a configuration issue or something else?

Thanks,

/Topher. [import]uid: 64722 topic_id: 13042 reply_id: 81220[/import]

Hi Topher,

Yours is a slightly different problem - my guess is that you’re not creating a project in TextMate, but just creating/opening a main.lua file directly (I was just able to reproduce what you’re getting by doing that).

The TextMate bundle requires you to use projects for the Run Simulator command to work. Easiest way to create a project in this case would be to drag and drop your ‘test’ folder from the Finder onto the TextMate icon in the dock; you can also choose to open a folder instead of a single file when you’re using the Open dialogue.

More info about TextMate projects: http://manual.macromates.com/en/working_with_multiple_files

Once you do that, it ought to work just fine for you. If it doesn’t, let me know!

Thanks,
Darren [import]uid: 1294 topic_id: 13042 reply_id: 81259[/import]

Hi Darren,

It worked! I maintain my excuse is that I’m still getting getting use to the subtle differences of a Mac.

Thanks for your help.
/Topher. [import]uid: 64722 topic_id: 13042 reply_id: 82458[/import]