rokucommunity / rokucommunity/brighterscript
Syntax error for `Tab(size as integer)` when used outside a print statment
Open
@TwitchBronBron is already working on this.
Since Apr 6, 2022.
bug
LanguageServer
- Dominant language
- TypeScript
- Stars
- 208
- Forks
- 68
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 39
Description
The following line of code does not result in a error diagnostic from the language server but does result in a compilation error on device:
m.status.logs = m.status.logs + Chr(10) + tab(2) + text
Error from device:

The problem is that tab() and pos() are only allowed to be used in print statements.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.