Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running build-tests #2

Open
waaadim opened this issue Jun 30, 2022 · 2 comments
Open

Error when running build-tests #2

waaadim opened this issue Jun 30, 2022 · 2 comments

Comments

@waaadim
Copy link

waaadim commented Jun 30, 2022

Can someone help me fix this?
I'm using the latest versions of brighterscript and rooibos-roku, because I was getting an error when doing npm i

% npm run build-tests

> [email protected] build-tests
> npx bsc

[07:56:36:7190 PM]  Using config file: "/Users/vrihlea/Projects/roku/rooibos-roku-sample/bsconfig.json"
[07:56:36:7610 PM]  Error when loading plugin 'rooibos-roku': Error: Cannot find module 'undent'
Require stack:
- /Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/rooibos-roku/dist/lib/rooibos/TestGroup.js
- /Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/rooibos-roku/dist/lib/rooibos/TestSuiteBuilder.js
- /Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/rooibos-roku/dist/lib/rooibos/RooibosSession.js
- /Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/rooibos-roku/dist/plugin.js
- /Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/brighterscript/dist/util.js
- /Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/brighterscript/dist/lexer/Lexer.js
- /Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/brighterscript/dist/parser/Parser.js
- /Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/brighterscript/dist/validators/ClassValidator.js
- /Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/brighterscript/dist/Scope.js
- /Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/brighterscript/dist/Program.js
- /Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/brighterscript/dist/ProgramBuilder.js
- /Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/brighterscript/dist/cli.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/rooibos-roku/dist/lib/rooibos/TestGroup.js:10:18)
    at Module._compile (node:internal/modules/cjs/loader:1097:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1151:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:999:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/rooibos-roku/dist/lib/rooibos/TestGroup.js',
    '/Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/rooibos-roku/dist/lib/rooibos/TestSuiteBuilder.js',
    '/Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/rooibos-roku/dist/lib/rooibos/RooibosSession.js',
    '/Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/rooibos-roku/dist/plugin.js',
    '/Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/brighterscript/dist/util.js',
    '/Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/brighterscript/dist/lexer/Lexer.js',
    '/Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/brighterscript/dist/parser/Parser.js',
    '/Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/brighterscript/dist/validators/ClassValidator.js',
    '/Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/brighterscript/dist/Scope.js',
    '/Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/brighterscript/dist/Program.js',
    '/Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/brighterscript/dist/ProgramBuilder.js',
    '/Users/vrihlea/Projects/roku/rooibos-roku-sample/node_modules/brighterscript/dist/cli.js'
  ]
}
[07:56:36:7650 PM]  Loading 1 plugins for cwd "/Users/vrihlea/Projects/roku/rooibos-roku-sample"
[07:56:36:7840 PM]  Parsing files
[07:56:36:8290 PM]  Parsing files finished. (44.667ms)
[07:56:36:8300 PM]  Validating project
[07:56:36:8330 PM]  Validating project finished. (3.295ms)

src/source/HelloWorld.spec.bs:25:14 - error BS1026: Duplicate identifier '_'

 25      function _()
 __               ~


src/source/HelloWorld.spec.bs:44:14 - error BS1026: Duplicate identifier '_'

 44      function _()
 __               ~


src/source/tests/BaseTestSuite.spec.bs:3:31 - error BS1029: Class 'rooibos.BaseTestSuite' could not be found when this file is included in scope 'source'

 3    class BaseTestSuite extends rooibos.BaseTestSuite
 _                                ~~~~~~~~~~~~~~~~~~~~~

[07:56:36:8360 PM]  Found 3 errors
@waaadim
Copy link
Author

waaadim commented Jul 4, 2022

works with following dependencies

    "brighterscript": "^0.52.3",
    "rooibos-roku": "^5.2.2",
    "undent": "^0.1.0"

@cewert
Copy link

cewert commented Mar 28, 2023

This was fixed by af9704a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants