Problem running simulator from command line

When trying to configure the XCode Build options to run the Corona Simulator, I discovered a problem. It doesn’t work if there is a space in the path name.

To test this, do the following:

Create a main.lua file in a directory with a space in the name. For example, in my user home directory I have a folder named “Projects” and within that is a folder named “Test Project” which contains the main.lua file.

Now open a Terminal window and type:

/Applications/Corona/simulator “~/Projects/Test Project”

it will fail to open the file. Now remove the space in the folder (so it is called “TestProject”) and now in the Terminal window, type:

/Applications/Corona/simulator “~/Projects/TestProject”

and you will see that it works correctly. Seems like a bug in the simulator and should be fixed asap.

Also, adding a way to specify the device from the command line is really needed. If you guys are not going to write your own IDE, then to use external editors like XCode you really need to support a full set of command line arguments so we can automate our build process. [import]uid: 12529 topic_id: 4825 reply_id: 304825[/import]

I cannot edit my above post (what’s the deal with that???) since the Forum drop-down list is empty.

I need to correct this post to say that in the second example, to make it work, you actually need the command line to be:

/Applications/Corona/simulator ~/Projects/TestProject

without the " quotes. Seems like maybe the problem is that Corona is not properly parsing quotes around the path name.

(btw, being a Web Developer, it looks like you are using Drupal for this site and trying to use Organic Group Forums. There is a known problem with OG Forums and editing posts not allowing you to select the forum field. You should look in the issue queue for this Drupal module to find the fix for that. I personally gave up on OG Forums and went back to normal Advanced Forums in Drupal because of this problem on my own site) [import]uid: 12529 topic_id: 4825 reply_id: 15469[/import]