You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting an error when running this with Brighterscript alpha-41
[04:19:12:414 PM] Building
[04:19:12:415 PM] Error when calling plugin bsc-plugin-findnodes.beforeBuildProgram: TypeError: program.getScopes is not a function or its return value is not iterable
at findNodeWithIDInjection (.../node_modules/bsc-plugin-auto-findnode/src/findNodes.ts:20:33)
at Plugin.beforeProgramTranspile (.../node_modules/bsc-plugin-auto-findnode/src/Plugin.ts:15:32)
at .../node_modules/brighterscript/src/PluginInterface.ts:83:51
at Logger.time (.../node_modules/@rokucommunity/logger/dist/Logger.js:355:20)
at PluginInterface.emitAsync (.../node_modules/brighterscript/src/PluginInterface.ts:81:40)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Object.action (.../node_modules/brighterscript/src/Program.ts:1633:27)
at async Program.build (.../node_modules/brighterscript/src/Program.ts:1630:9)
at async .../node_modules/brighterscript/src/ProgramBuilder.ts:444:17
at async .../node_modules/brighterscript/src/ProgramBuilder.ts:442:13
[04:19:12:476 PM] Building finished. (61.873ms)
The text was updated successfully, but these errors were encountered:
Yeah, this won't work with bsc v1 alphas at this time. We'll need to spin up a v1 alpha branch of this plugin to support that, as the bsc AST has changed a bit in v1. Any chance you'd be willing to help out in upgrading this lib to bsc v1?
Would technically be a breaking change to make that the default setting. However, I could see there being a configuration option that would apply this optimization. We'd scan for all files in the current scope, build every m.* reference, and any that are nodes with those ids, we'd include.
Getting an error when running this with Brighterscript alpha-41
The text was updated successfully, but these errors were encountered: