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

Removed Diagnostics from sys.ts in order to avoid cyclical build dependency #932

Merged
merged 2 commits into from
Oct 22, 2014

Conversation

DanielRosenwasser
Copy link
Member

Specifically, processDiagnosticMessages.ts was dependent on sys.ts, which was dependent on the rest of the compiler, which meant that after merge, you could never compile processDiagnosticMessages.ts.

…ndency.

Specifically, processDiagnosticMessages.ts was dependent on sys.ts, which was dependent on the rest of the compiler,
which meant that in a broken state of diagnostics, you could never compile processDiagnosticMessages.ts.
@@ -27,6 +27,10 @@ declare var module: any;
declare var process: any;
declare var global: any;

enum SystemError {
Copy link
Contributor

Choose a reason for hiding this comment

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

i would just make it a constant. we do not have other ones now, so no need to use an enum. I would even make it "-2147024809", just give it a name.

Copy link
Contributor

Choose a reason for hiding this comment

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

unsupportedFileEncodingErrorCode or something.

@DanielRosenwasser DanielRosenwasser force-pushed the breakCycleInDiagnosticGeneration branch from 3c1d859 to b371b02 Compare October 21, 2014 22:12
@sheetalkamat
Copy link
Member

👍

DanielRosenwasser added a commit that referenced this pull request Oct 22, 2014
Removed Diagnostics from sys.ts in order to avoid cyclical build dependency
@DanielRosenwasser DanielRosenwasser merged commit 30a49db into master Oct 22, 2014
@DanielRosenwasser DanielRosenwasser deleted the breakCycleInDiagnosticGeneration branch October 22, 2014 08:06
@DanielRosenwasser
Copy link
Member Author

Thanks @sheetalkamat - and I'll openly say you were right about this. 😄

DanielRosenwasser added a commit that referenced this pull request Oct 23, 2014
Addresses the original intention of #932.
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
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