First tutorial, first error

Hello there!

I’m pretty new with Corona and this is my first file, the famous Hello World tutorial, but I got this message on terminal. By the way my terminal does not open the “open file” window.
The file sandbox for this project is located at the following folder:
(/Users/andrekadow/Library/Application Support/Corona Simulator/corona-61D0BD266750B9BB6C3AF288D80B6DA0)
Syntax error: /clientes/everywhere/corona/main.lua:1: unexpected symbol near ‘?’
The file was edited on BBedit

Thanks

[import]uid: 10133 topic_id: 3089 reply_id: 303089[/import]

I get this sometimes check your spelling in the code I hit
Something on the keyboard that adds a funny Looking B
In the code sometimes I thing im hitting ctrl something instead
Of ctrl s
Or you could have missed a ) [import]uid: 7911 topic_id: 3089 reply_id: 9060[/import]

Is it fixed? It can also be a simple text format error.
I use TextWrangler and use the settings of Mac Settings with UTF-8 and \ *no BOM * Please note that this is very important, the first time I used just UTF-8 and had the same errors. This changes the file format to Little Endian or Big Endian and hence the error.

FIX:
Open the file in TextEdit and save it. Now run it under Corona, it will work perfectly fine.

cheers,

Jayant C Varma [import]uid: 3826 topic_id: 3089 reply_id: 9250[/import]

Problem solved! thanks!!

I changed to Unix(LF) and works. I don’t know why but was set to windows crlf before
:slight_smile:

[import]uid: 10133 topic_id: 3089 reply_id: 9275[/import]