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

Include commit id into internal compiler error #1251

Open
verytactical opened this issue Dec 24, 2024 · 1 comment
Open

Include commit id into internal compiler error #1251

verytactical opened this issue Dec 24, 2024 · 1 comment
Assignees
Labels
errors Error reporting mechanism

Comments

@verytactical
Copy link
Contributor

Include commit id into internal compiler error, so that in case user encounters one and shares it, we won't have to ask which compiler version it was.

@novusnota novusnota added the errors Error reporting mechanism label Dec 24, 2024
@jubnzv
Copy link
Member

jubnzv commented Dec 25, 2024

Here's the example of this implemented in Misti: scripts/genVersions.cjs. It generates src/version-info.ts which is imported here and is used to generate error messages.

The script is written in JS because it is called when Misti is being built as an npm dependency, and we don't want to force the user to install TypeScript globally to build it.

Also, this line in package.json is important, otherwise the user won't be able to install Misti as dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
errors Error reporting mechanism
Projects
None yet
Development

No branches or pull requests

3 participants