Where does the Corona SDK install Lua on the Mac?

I’m actually having trouble using Textmate with Corona. I’ve installed the Corona Textmate bundle from Ludicrous Software: http://www.ludicroussoftware.com/corona-textmate-bundle/ using git clone, but when I do ESC or TAB nothing happens! Doing CMD + R produces the following error message:

This command requires ‘lua’ which wasn’t found on your system.

The following locations were searched: • /usr/bin • /bin • /usr/sbin • /sbin • ~/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/bin

If ‘lua’ is installed elsewhere then you need to set TM_LUA in Preferences → Variables to the full path of where you installed it.

(I’m running the latest version of Textmate 2 (alpha) on a Mac running Mavericks.)

I had been following the instructions given here: http://www.ludicroussoftware.com/corona-textmate-bundle/

There is a mistake in those instructions: where the path ‘~/Library/Application Support/TextMate/Bundles’ is mentioned, it should actually be changed to ‘~/Library/Application Support/TextMate/Managed/Bundles’.

Now, CMD + R gives me the option to chose between the Corona SDK and Lua. Selecting Corona SDK works nicely, but selecting Lua produces the error message I mentioned above.

Corona SDK does not install Lua on your computer.  We have it complied into Corona SDK directly so you don’t need Lua to use Corona SDK.  Sounds like Textmate needs it though.  You should be able to go to the lua site and get instructions on installing Lua as a separate tool on your computer (which thanks for reminding me, I just got a new Mac and I need to do that).  See:

http://www.devthought.com/2009/03/17/how-to-install-lua-5-in-mac-os-x-leopard/

Note the first comment.  Later versions of OS-X don’t have the “wget” command so you can alias curl to do the work.

As for text editors you should consider Sublime Text as we’ve built our own extensions for it that does all the things that textmate bundle does and more.  See: http://www.coronalabs.com/products/editor/

Rob

Corona Editor indeed looks nice!

Thanks, Rob.

I had been following the instructions given here: http://www.ludicroussoftware.com/corona-textmate-bundle/

There is a mistake in those instructions: where the path ‘~/Library/Application Support/TextMate/Bundles’ is mentioned, it should actually be changed to ‘~/Library/Application Support/TextMate/Managed/Bundles’.

Now, CMD + R gives me the option to chose between the Corona SDK and Lua. Selecting Corona SDK works nicely, but selecting Lua produces the error message I mentioned above.

Corona SDK does not install Lua on your computer.  We have it complied into Corona SDK directly so you don’t need Lua to use Corona SDK.  Sounds like Textmate needs it though.  You should be able to go to the lua site and get instructions on installing Lua as a separate tool on your computer (which thanks for reminding me, I just got a new Mac and I need to do that).  See:

http://www.devthought.com/2009/03/17/how-to-install-lua-5-in-mac-os-x-leopard/

Note the first comment.  Later versions of OS-X don’t have the “wget” command so you can alias curl to do the work.

As for text editors you should consider Sublime Text as we’ve built our own extensions for it that does all the things that textmate bundle does and more.  See: http://www.coronalabs.com/products/editor/

Rob

Corona Editor indeed looks nice!

Thanks, Rob.