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

Add support for -bs-super-errors compilation messages #39

Open
Khady opened this issue Sep 9, 2018 · 0 comments
Open

Add support for -bs-super-errors compilation messages #39

Khady opened this issue Sep 9, 2018 · 0 comments

Comments

@Khady
Copy link
Collaborator

Khady commented Sep 9, 2018

This is more bucklescript related than reason related, but I don't know in which other package it could go. So proposing for inclusion here.

When compiling a bucklescript project, -bs-super-errors is enabled by default and can't be disabled. The messages that are printed in this mode are not parsed correctly by emacs in compilation mode.

To parse compilation messages, emacs is using the regexp that are stored in compilation-error-regexp-alist. I'd like to have the regexp to parse super errors messages included in reason-mode. I am not sure how to make sure that this regexp is added only once.

(add-to-list
 'compilation-error-regexp-alist
 '("^[ \t]*\\(?:We've found a bug for you!\\)?\\(?:Warning number \\([0-9]+\\)\\)?[\n ]*\\([^ ]+\\) +\\([0-9]+\\):\\([0-9]+\\)-?\\(?:\\([0-9]+\\):\\)?\\([0-9]+\\)?$"
   2 (3 . 5) (4 . 6) 1))
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