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

Make it simpler to identify that the RTS is causing an error #548

Open
BinderDavid opened this issue Sep 14, 2023 · 0 comments
Open

Make it simpler to identify that the RTS is causing an error #548

BinderDavid opened this issue Sep 14, 2023 · 0 comments

Comments

@BinderDavid
Copy link

When debugging an error it is very important to identify the "speaker" who emitted the error message.
For example, I recently had to figure out which tool causes the following error on the command line:

Hpc failure: module mismatch with .tix/.mix file hash number
(perhaps remove Example.tix file?)

After some search it turned out that the the error originates from the GHC runtime system. Errors coming from GHC are already easily identifiable by the [GHC-XXXX] prefix, stack and ghcup have implemented the same convention, and cabal will soon follow suit in version 3.12.

I don't think it is necessary to go to the great lengths as the structured error message proposal for GHC, but maybe it would be possible to go through the C code of the RTS and make sure that every error message emitted by the RTS identifies itself as such, maybe by a prefix like [GHC-RTS] or something like that.

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

No branches or pull requests

1 participant