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

Report errors before warnings. #4440

vicuna opened this Issue Nov 5, 2007 · 1 comment


None yet
2 participants
Copy link

commented Nov 5, 2007

Original bug ID: 4440
Reporter: @dbuenzli
Assigned to: @damiendoligez
Status: closed (set by @damiendoligez on 2007-12-04T13:37:08Z)
Resolution: fixed
Priority: normal
Severity: feature
Version: 3.10.0
Fixed in version: 3.11+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: ertai @yakobowski

Bug description

It would be nice if the compiler could report errors before warnings.

During debuging sessions I sometimes have warnings -- e.g. unused variables because portions of the code were commented out. But when the code refuses to compile these warnings are usually printed before the error. In the emacs mode, using C-x ' (goto next error), this means going through all the warnings before getting to the error. This is annoying.



File attachments


This comment has been minimized.

Copy link
Collaborator Author

commented Dec 4, 2007

Comment author: @damiendoligez

I have added (in the 3.11 branch) an emacs-lisp function:
caml-next-error-skip-warnings to jump to the next error
while ignoring warnings.

You just need to bind this function to a key of your choice.

If you need the functionality before 3.11.0 is out, you can
use the attached patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.