Skip to content

fix: --use cause compile crash (#2225) #2227

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

Conversation

HerrCai0907
Copy link
Member

@HerrCai0907 HerrCai0907 commented Mar 17, 2022

⯈ change error to diagnostic message ( issue #2225 )

  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@@ -184,6 +184,7 @@
"Type '{0}' has no call signatures.": 2757,

"File '{0}' not found.": 6054,
"no such global element: '{0}'":6055,
Copy link
Member

Choose a reason for hiding this comment

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

Diagnostic 6055 is different in TypeScript, and we try to prevent collisions there. What seems to fit, though, is to renumber this diagnostic to 110 and move it up to the 1XX range of custom AS compiler errors.

Error ranges are about:

  • 100-199: Custom AS compiler errors
  • 200-899: Custom AS compilation diagnostics
  • 900-999: Pedantic diagnostics
  • 1000+: Reused TypeScript errors

@HerrCai0907 HerrCai0907 deleted the issue-2225-compile-crash-when-use branch May 15, 2022 11:21
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