Replies: 4 comments 4 replies
-
It looks like you're trying to upload the raw brightERscript code to a Roku device. BrighterScript requires a transpile (compile) step before it can be run on a Roku. You need to run Check out this sample project for an example that works in vscode. |
Beta Was this translation helpful? Give feedback.
-
Yes. Look at the sample project I posted, it sets up vscode for exactly these reasons. Look at preLaunchTask in launch.json and "build" in tasks.json.. you should pull down the sample project and test it out.
The output folder generated by |
Beta Was this translation helpful? Give feedback.
-
Thanks for the template project. It was helpful. I have a couple of observations. Please let me know if I'm doing something wrong.
Is the above a correct way to proceed? I am developing on Windows. |
Beta Was this translation helpful? Give feedback.
-
I can write a longer explanation in a day or two, but in the meantime you can watch this tutorial on how to convert a project to BrighterScript, it might help answer a few of your questions. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to define the following class.
I get the following errors:
--- Syntax Error. (compile error &h02 (ERR_SYNTAX): syntax error ) in pkg:/components/UILogic/BookmarkLogic.bs(4)
--- Syntax Error. (compile error &h02 (ERR_SYNTAX): syntax error ) in pkg:/components/UILogic/BookmarkLogic.bs(6)
--- Syntax Error. (compile error &h02 (ERR_SYNTAX): syntax error ) in pkg:/components/UILogic/BookmarkLogic.bs(7)
--- Syntax Error. (compile error &h02 (ERR_SYNTAX): syntax error ) in pkg:/components/UILogic/BookmarkLogic.bs(14)
--- Syntax Error. (compile error &h02 (ERR_SYNTAX): syntax error ) in pkg:/components/UILogic/BookmarkLogic.bs(18)
What am I missing?
I should also mention that I'm getting these messages while trying to debug in Visual Studio Code.
Beta Was this translation helpful? Give feedback.
All reactions