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

Upgrading to Brighterscript v1 #289

Merged
merged 15 commits into from
Aug 14, 2024

Conversation

markwpearce
Copy link
Collaborator

@markwpearce markwpearce commented Jul 31, 2024

Goals:

  • Upgrade all Brighterscript dependencies to the latest alpha version
  • Modify plugin to work with new plugin architecture
  • Make all Brighterscript code type safe and fix errors

Also:

  • clean up package.json and build foolishness
  • add ability to run Rooibos tests from command line

@@ -115,3 +129,12 @@ export function getScopeForSuite(testSuite: TestSuite) {
return testSuite.file.program.getFirstScopeForFile(testSuite.file);
}
}

export function getFileLookups(file: BrsFile): CachedLookups {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New function to replace file.parser.references

(bsFile as BrsFile).parser.statements.push();
bsFile.needsTranspiled = true;
}
//let bsFile = program.getFile(suite.bsPkgPath);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is needed anymore in v1

@@ -14,7 +14,10 @@ function addDiagnostic(
severity: DiagnosticSeverity = DiagnosticSeverity.Error
) {
endLine = endLine === -1 ? startLine : endLine;
file.addDiagnostics([createDiagnostic(file, code, message, startLine, startCol, endLine, endCol, severity)]);
file.program.diagnostics.register(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using new diagnostics manager

@@ -15,18 +15,18 @@ namespace rooibos
protected hasIgnoredTests = false
protected isSolo = false
protected isIgnored = false
protected noCatch = false
public noCatch = false
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many changes in the .BS files to support proper typing and to fix validation errors

@@ -3,7 +3,8 @@
"files": [
"manifest",
"source/**/*.*",
"components/**/*.*"
"components/**/*.*",
{ "src": "../../framework/src/source/**/*", "dest": "source/rooibos" }
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be able to import the framework in the tests

@markwpearce markwpearce changed the base branch from master to release-6.0.0 August 9, 2024 19:11
@markwpearce markwpearce changed the title [WIP] Upgrading to Brighterscript v1 Upgrading to Brighterscript v1 Aug 9, 2024
@markwpearce markwpearce added this to the 6.0.0 milestone Aug 13, 2024
@markwpearce markwpearce merged commit 96d2167 into rokucommunity:release-6.0.0 Aug 14, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants