Skip to content
This repository was archived by the owner on Feb 28, 2026. It is now read-only.

Throw more detailed error when compilation fails#18783

Merged
Charles-Gagnon merged 2 commits intomainfrom
chgagnon/betterError
Mar 24, 2022
Merged

Throw more detailed error when compilation fails#18783
Charles-Gagnon merged 2 commits intomainfrom
chgagnon/betterError

Conversation

@Charles-Gagnon
Copy link
Contributor

Related to #18781 - it took me a long time to track down where this failure was coming from because the error being thrown wasn't very useful :

Uncaught SyntaxError: Unexpected token '??'

this will make it now display something like this

Uncaught Error: Error compiling file:///.../vs/workbench/browser/parts/editor/editorGroupView.js. SyntaxError: Unexpected token '??'

PR for VS Code : microsoft/vscode-loader#37

recorder.record(61 /* CachedDataMissed */, cachedDataPath);
}
var script = new that._vm.Script(scriptSource, options);
var script;
Copy link
Contributor

Choose a reason for hiding this comment

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

sql carbon edit comments?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh right, let me wait and see if they accept my PR first.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No word from them yet so just going to get this in and we can remove it later if they accept the change.

@coveralls
Copy link

coveralls commented Mar 18, 2022

Pull Request Test Coverage Report for Build 2036324496

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 136 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-5.5%) to 42.511%

Files with Coverage Reduction New Missed Lines %
extensions/dacpac/src/wizard/dataTierApplicationWizard.ts 2 80.99%
extensions/sql-bindings/src/services/azureFunctionsService.ts 21 12.35%
extensions/sql-database-projects/src/dialogs/updateProjectFromDatabaseDialog.ts 39 70.18%
extensions/sql-bindings/src/common/azureFunctionsUtils.ts 74 26.39%
Totals Coverage Status
Change from base Build 2006776902: -5.5%
Covered Lines: 27561
Relevant Lines: 60572

💛 - Coveralls

@Charles-Gagnon Charles-Gagnon merged commit f325a2d into main Mar 24, 2022
@Charles-Gagnon Charles-Gagnon deleted the chgagnon/betterError branch March 24, 2022 20:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants