I am getting this error and I have no idea why, everything was working in the last build. Can you guys please help me out? I am not defining ‘scrollBar’ anywhere…
?:0: attempt to index field ‘scrollBar’ (a nil value)
message
stack traceback:
[C]: ?
?: in function ‘createScrollBar’
?: in function <?:304>
?: in function <?:218> [import]uid: 58885 topic_id: 37199 reply_id: 67199[/import]
I am also getting this error as well:
?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value)
message
stack traceback:
[C]: ?
?: in function ‘createScrollBar’
?: in function <?:304>
?: in function <?:218>
I don’t know where to even start… [import]uid: 58885 topic_id: 37199 reply_id: 145467[/import]
Ok the first error msg was from setting the widget .theme to customize the look of the widgets. The second one I am still having issues with and haven’t been able to locate the point in code where it is even happening.
[import]uid: 58885 topic_id: 37199 reply_id: 145468[/import]
Am on build 1055 and getting a similar issue. when i attempt to add a simple text item to the ScrollView i get:
?:0: attempt to index field 'scrollBar' (a nil value)
stack traceback:
[C]: ?
?: in function 'createScrollBar'
?: in function 'insert'
...k/ArcherZUpshot/ArcherZUpshot/sceneMissingMarble.lua:177: in function 'buildScrollView'
This is off in the widget code. The code doing this was working just fine prior to the move to widget 2.0.
So then i spent the next two hours trying to figure this out ... well somewhere in my execution path was:
widget.setTheme( "theme\_ios" )
this line of code makes it all go bad when moving to Widgets 2.0 ... now perhaps this was somewhere in the gotyas and documentation but this line of code broke the internal widget 2.0 code.
ps you also have numerous Global variables used in the Widget code ... e.g., "themeTable", "mask", "imageSheet" to name a few. I would be happier if there were no globals like this.
I am also getting this error as well:
?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value)
message
stack traceback:
[C]: ?
?: in function ‘createScrollBar’
?: in function <?:304>
?: in function <?:218>
I don’t know where to even start… [import]uid: 58885 topic_id: 37199 reply_id: 145467[/import]
Ok the first error msg was from setting the widget .theme to customize the look of the widgets. The second one I am still having issues with and haven’t been able to locate the point in code where it is even happening.
[import]uid: 58885 topic_id: 37199 reply_id: 145468[/import]
Am on build 1055 and getting a similar issue. when i attempt to add a simple text item to the ScrollView i get:
?:0: attempt to index field 'scrollBar' (a nil value)
stack traceback:
[C]: ?
?: in function 'createScrollBar'
?: in function 'insert'
...k/ArcherZUpshot/ArcherZUpshot/sceneMissingMarble.lua:177: in function 'buildScrollView'
This is off in the widget code. The code doing this was working just fine prior to the move to widget 2.0.
So then i spent the next two hours trying to figure this out ... well somewhere in my execution path was:
widget.setTheme( "theme\_ios" )
this line of code makes it all go bad when moving to Widgets 2.0 ... now perhaps this was somewhere in the gotyas and documentation but this line of code broke the internal widget 2.0 code.
ps you also have numerous Global variables used in the Widget code ... e.g., "themeTable", "mask", "imageSheet" to name a few. I would be happier if there were no globals like this.
Hi All,
I am using the latest build 1075 and getting the same error.
When I was using previous build i.e 972 It’s working perfectly.
It’s strange. If any one find solution please let us know.
Thanks,
Hi.
Are you calling widget.setTheme anywhere? And if so can you show me how you are calling it?
Hi All,
I am using the latest build 1075 and getting the same error.
When I was using previous build i.e 972 It’s working perfectly.
It’s strange. If any one find solution please let us know.
Thanks,
Hi.
Are you calling widget.setTheme anywhere? And if so can you show me how you are calling it?
i am calling widget.setTheme this way
<lua>
widget.setTheme( “theme_ios” )
</lua>
i’m getting the error
?:0: attempt to index field ‘scrollBar’ (a nil value)
message
stack traceback:
[C]: ?
?: in function ‘createScrollBar’
?: in function
?: in function
it was working on the previous build fine. but not working on the one i downloaded yesterday. what should i do?
Getting the same error
attempt to index field ‘scrollBar’ (a nil value)
stack traceback:
[C]: ?
?: in function ‘createScrollBar’
?: in function ‘_listener’
?: in function <?:141>
?: in function <?:218>
Im Setting the theme as
widget.setTheme( "theme\_ios" )
After removing that i get the following error
attempt to index field ‘scrollBar’ (a nil value)
stack traceback:
[C]: ?
?: in function ‘createScrollBar’
?: in function <?:365>
?: in function <?:218>
Someone with a solution, or an explanation of what the problem is?
theme_ios no longer exists that is what is causing the issue. The correct call is:
widget.setTheme( “widget_theme_ios” )
This theme is set automatically for you now on iOS and simulator without you calling set theme.
Thank you, that worked
i am calling widget.setTheme this way
<lua>
widget.setTheme( “theme_ios” )
</lua>
i’m getting the error
?:0: attempt to index field ‘scrollBar’ (a nil value)
message
stack traceback:
[C]: ?
?: in function ‘createScrollBar’
?: in function
?: in function
it was working on the previous build fine. but not working on the one i downloaded yesterday. what should i do?
Getting the same error
attempt to index field ‘scrollBar’ (a nil value)
stack traceback:
[C]: ?
?: in function ‘createScrollBar’
?: in function ‘_listener’
?: in function <?:141>
?: in function <?:218>
Im Setting the theme as
widget.setTheme( "theme\_ios" )
After removing that i get the following error
attempt to index field ‘scrollBar’ (a nil value)
stack traceback:
[C]: ?
?: in function ‘createScrollBar’
?: in function <?:365>
?: in function <?:218>
Someone with a solution, or an explanation of what the problem is?
theme_ios no longer exists that is what is causing the issue. The correct call is:
widget.setTheme( “widget_theme_ios” )
This theme is set automatically for you now on iOS and simulator without you calling set theme.
Thank you, that worked