Build Error

8 replies [Last post]
Dotnaught's picture
Dotnaught
User offline. Last seen 9 hours 43 min ago. Offline
Joined: 7 Jul 2009

I tried to build a version of the game I'm working on and got this error:

luac: /Applications/Corona/A New Game/._main.lua:1: unexpected symbol
logout

The console says:
1/16/10 11:22:48 AM [0x0-0x181181].com.anscamobile.Corona_Simulator[3801] luac: /Users/.../Documents/Code/Corona Code/A New Game/._main.lua:1: unexpected symbol
1/16/10 11:22:48 AM com.apple.launchd.peruser.501[96] ([0x0-0x181181].com.anscamobile.Corona_Simulator[3801]) Exited with exit code: 1

This doesn't seem to provide any helpful information to diagnose the problem.

The program runs fine in the simulator.

The first lines of the code are:
-- Load external button library (should be in the same folder as main.lua)
local ui = require("ui")

and the ui.lua is in the project folder.

Any idea why the build isn't working?

Replies

Jeff Johnson's picture
Jeff Johnson
User offline. Last seen 1 year 28 weeks ago. Offline
Joined: 3 Jun 2009

What program are you using to edit your code?

Dotnaught's picture
Dotnaught
User offline. Last seen 9 hours 43 min ago. Offline
Joined: 7 Jul 2009

TextMate.

I could email you a copy of the source if that would help.

I just downloaded TextWrangler, did a "Save As" and tried building again. Same result.

carlos m. icaza's picture
carlos m. icaza
User offline. Last seen 13 hours 18 min ago. Offline
Ansca Staff
Joined: 22 Jun 2009

Tom

send me code info@anscamobile.com (zipped)

carlos

Dotnaught's picture
Dotnaught
User offline. Last seen 9 hours 43 min ago. Offline
Joined: 7 Jul 2009

Sent. As I mentioned in the note, it may be a corrupt file that's causing the problems. The project folder will not zip properly.

Dotnaught's picture
Dotnaught
User offline. Last seen 9 hours 43 min ago. Offline
Joined: 7 Jul 2009

Problem resolved. Thanks for the help anyway. The folder the files were in seemed to be corrupt. I could not zip it. I moved the files into a new folder and it zipped. Then tried a build and it worked.

carlos m. icaza's picture
carlos m. icaza
User offline. Last seen 13 hours 18 min ago. Offline
Ansca Staff
Joined: 22 Jun 2009

Glad it works. BTW: Looks cool. :-)

Carlos

cditto
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 7 Jan 2010

I'm using the latest Corona version and the exact same thing just happened to me. Copying the files to a new folder did not help.

I fixed the problem by using the OS X terminal to navigate to my code directory, and removing ._main.lua with the command:

rm ._main.lua

I had no problem building my app after that.

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.