"gplayersv" wrote:
And me again, I was able to create a project, syntax highlighting works, but autocomplete, ctrl+space don't. Whenever I type a variable and put a dot after it, in the status bar I get:
Syntax error: unexpected token "(...)" <NEWLINE>, expected one of <ID>, or <TYPEID>
Also I'm not really sure how I can run or debug the code from ecplise.
Re: Auto-complete.
That's a known bug (or more accurately, an incomplete implementation). Auto-complete doesn't work properly yet - partial input is not taken into account in the code, so the most you can get right now is to hit ctrl-space first, then select something from the list, which is a combination of variable names defined in your .brs file so far, component types (which is now an incomplete list because I'm behind on the matching the SDK contents), and language keywords. Basically, the current "auto-complete" code is just a placeholder until I can get around to the complete and correct implementation.
The language parser runs in the background, and doesn't pause (yet) while you're typing or in auto-complete mode, so it will quickly show a syntax error message in the status bar at that point (because technically, if you stop at the "dot", it is a syntax error).
Re: Running and debugging.
At present there is no integration with the Roku on-box debugger. That's on the to-do list, and most likely the next major area I'll tackle once some of the existing bugs are fixed.
Running your code will always be on the Roku box itself, unless Roku decides to include an emulator in the SDK.
At present, you can package and upload your project to the Roku box, which automatically runs the channel on completion of upload, by using the BrightScript plugin's export wizard (File->Export->BrightScript->BrightScript Deployment). Note, you must have the project or one of it's files selected before the export wizard will work.
Cheers