rokucommunity / rokucommunity/brighterscript

Error BS1091 Incorrectly Flags "#if not <CONST>"

Open
#1,158 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
208
Forks
68
Avg merge
8h 39m
Merged PRs (30d)
39

Description

Pretty simple to test in any app, see the screenshot.

I've had one of these #if nots in our repo for a long time, but I did a quick sanity test too and verified that the Roku OS can process either if/else path successfully.

image

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.

Research direction

Reproduce the report in a minimal Roku/BrightScript app containing #if not <CONST> and observe when BS1091 is emitted. Compare both #if branches and verify that valid conditional-compilation syntax no longer produces the diagnostic; the issue does not name a source file or test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.