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

New project won't build with basic test #191

Open
elliot-nelson opened this issue Oct 5, 2022 · 2 comments
Open

New project won't build with basic test #191

elliot-nelson opened this issue Oct 5, 2022 · 2 comments

Comments

@elliot-nelson
Copy link

elliot-nelson commented Oct 5, 2022

SUMMARY

(This could be related to #185)

  1. Create a new, empty project
  2. npm install brighterscript rooibos-roku (installs "brighterscript": "^0.59.0", "rooibos-roku": "^5.2.3").
  3. Copy the Simple.brs example file into src/source folder
  4. Create a bsconfig.json file:
{
  "rootDir": "src",
  "plugins": [
    "rooibos-roku"
  ],
  "files": [
    "manifest",
    "source/**/*.*",
    "components/**/*.*",
    "images/**/*.*"
  ]
}
  1. Run bsc

Output:

bsc
[12:13:41:6530 AM]  Using config file: "/Users/enelson/dev/wbd/test-3/bsconfig.json"
[12:13:41:6770 AM]  Loading 1 plugins for cwd "/Users/enelson/dev/wbd/test-3"
[12:13:41:9560 AM]  Parsing files
[12:13:41:9830 AM]  Parsing files finished. (26.239ms)
[12:13:41:9830 AM]  Validating project
[12:13:42:1690 AM]  Validating project finished. (185.713ms)

node_modules/rooibos-roku/dist/lib/framework/BaseTestSuite.bs:1904:35 - error BS1001: Cannot find name 'defaultValue'

 1904            expectedArgsValues.push(defaultValue)
 ____                                    ~~~~~~~~~~~~ 


node_modules/rooibos-roku/dist/lib/framework/CommonUtils.bs:818:27 - error BS1001: Cannot find name 'index'

 818            nextPart = part[index]
 ___                            ~~~~~ 


node_modules/rooibos-roku/dist/lib/framework/CommonUtils.bs:820:27 - error BS1001: Cannot find name 'index'

 820            nextPart = part[index]
 ___                            ~~~~~ 


node_modules/rooibos-roku/dist/lib/framework/CommonUtils.bs:825:12 - error BS1001: Cannot find name 'nextPart'

 825          if nextPart = invalid or type(nextPart) <>  "roAssociativeArray"
 ___             ~~~~~~~~                                                     


node_modules/rooibos-roku/dist/lib/framework/CommonUtils.bs:825:39 - error BS1001: Cannot find name 'nextPart'

 825          if nextPart = invalid or type(nextPart) <>  "roAssociativeArray"
 ___                                        ~~~~~~~~                          


node_modules/rooibos-roku/dist/lib/framework/CommonUtils.bs:827:30 - error BS1001: Cannot find name 'index'

 827              nextPart = { id: index }
 ___                               ~~~~~  


node_modules/rooibos-roku/dist/lib/framework/CommonUtils.bs:828:18 - error BS1001: Cannot find name 'index'

 828              part[index] = nextPart
 ___                   ~~~~~            


node_modules/rooibos-roku/dist/lib/framework/CommonUtils.bs:834:16 - error BS1001: Cannot find name 'nextPart'

 834          part = nextPart
 ___                 ~~~~~~~~


node_modules/rooibos-roku/dist/lib/framework/ConsoleTestReporter.bs:57:35 - error BS1001: Cannot find name 'overrallResult'

 57        m.printLine(0, "RESULT: " + overrallResult)
 __                                    ~~~~~~~~~~~~~~ 


node_modules/rooibos-roku/dist/lib/framework/ConsoleTestReporter.bs:106:53 - error BS1001: Cannot find name 'testChar'

 106          messageLine = Rooibos.Common.fillText(" " + testChar + " |--" + test.name + " : ", ".", m.lineWidth)
 ___                                                      ~~~~~~~~                                                


node_modules/rooibos-roku/dist/lib/framework/ConsoleTestReporter.bs:107:68 - error BS1001: Cannot find name 'timeText'

 107          m.printLine(0, messageLine + test.result.getStatusText() + timeText)
 ___                                                                     ~~~~~~~~ 


node_modules/rooibos-roku/dist/lib/framework/ConsoleTestReporter.bs:114:30 - error BS1001: Cannot find name 'testChar'

 114          m.printLine(0, " " + testChar + " |--" + name + " : ")
 ___                               ~~~~~~~~                         


node_modules/rooibos-roku/dist/lib/framework/ConsoleTestReporter.bs:132:53 - error BS1001: Cannot find name 'testChar'

 132          messageLine = Rooibos.Common.fillText(" " + testChar + insetText + " |--" + formatJson(rawParams) + " : ", ".", m.lineWidth)
 ___                                                      ~~~~~~~~                                                                        


node_modules/rooibos-roku/dist/lib/framework/ConsoleTestReporter.bs:132:96 - error BS1001: Cannot find name 'rawParams'

 132          messageLine = Rooibos.Common.fillText(" " + testChar + insetText + " |--" + formatJson(rawParams) + " : ", ".", m.lineWidth)
 ___                                                                                                 ~~~~~~~~~                            


node_modules/rooibos-roku/dist/lib/framework/ConsoleTestReporter.bs:133:68 - error BS1001: Cannot find name 'timeText'

 133          m.printLine(0, messageLine + test.result.getStatusText() + timeText)
 ___                                                                     ~~~~~~~~ 

[12:13:42:1770 AM]  Found 15 errors
@georgejecook
Copy link
Collaborator

This is due to a bsc incompatibility. I will have a fix for this, later this week.

@georgejecook
Copy link
Collaborator

please try again with rooibos 5.3.0, and let me know if it works

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