Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

unexpected symbol near '<eof>'
Started by boombox.extra Jun 30 2019 04:01 AM

3 replies to this topic
#unexpected #sybmol #near
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

boombox.extra

[GLOBAL: userInfoPane.html]
boombox.extra
  • Observer

  • 2 posts
  • Corona SDK

settings =
{
  orientation =
  {
    default = "landscapeLeft",
    supported = { "landscapeLeft", },
  },

 

wtf? 

D:\Games\Corona SDK\Platform project\Platform project\main.lua:70: unexpected symbol near '<eof>'

help please


[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,788 posts
  • Enterprise

Your curly braces don't match up. You need a closing one for the one under "settings ="

 

Rob



[TOPIC: post.html]
#3

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Contributor

  • 762 posts
  • Corona SDK

I'm not sure if that is the case, Rob.

 

Seems to me like @boombox.extra pasted 7 rows of code from build.settings, while the error occurs in main.lua. Am I just confused, or does the given code have nothing to do with the actual error? 



[TOPIC: post.html]
#4

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,585 posts
  • Corona SDK

@boombox,

 

  • You're looking at the wrong file for the issue.  Look at main.lua
  • look at line 70, and/or just before that.
  • eof stands for end-of-file
  • you're probably looking for an unmatched bracket (curly or square) or an unmatched end 
  • alternately, you've got a invalid statement at or just before the end of the file



[topic_controls]
[/topic_controls]