rokucommunity / rokucommunity/brighterscript

Syntax error for `Tab(size as integer)` when used outside a print statment

Open
#558 0 comments 0 reactions 1 assignee View on GitHub

@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:
Screen Shot 2022-04-06 at 10 21 35 AM

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.