rokucommunity / bslint

A linter for BrightScript and BrighterScript.
MIT License
28 stars 14 forks source link

Functions declared in other source files not found. (bug) #38

Closed bogdanterzea closed 2 years ago

bogdanterzea commented 2 years ago

Description

In a sceneGraph application (brightscript) I tried to use the following bsconfig file -img1- and after I run npx bslint I get the following errors -img2-. image image

Mention:

elsassph commented 2 years ago

@bogdanterzea the issue is in brighterscript. By filtering out errors 1001 you're hiding that even without the linter, the compiler fails to find other source declarations. You shouldn't filter out base errors like that BTW, only 1104 is really minor, others are usually real problems, though here there seem to be a bug on the compiler side.

@TwitchBronBron I could reproduce that, when the root folder is src/main, for source scope, brighterscript doesn't collect source callables correctly and raises a "Cannot find function ... in scope source".

image
elsassph commented 2 years ago

I must close the bug here as it's a brighterscript bug.