-
Notifications
You must be signed in to change notification settings - Fork 414
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
Fix compilation in --dev mode with 4.08 #2296
Conversation
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
src/scheme.mli
Outdated
| Empty | ||
(** [Empty] is a scheme that has no rules *) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The compiler now complains if the comment is before the constructor, so I moved them all after
Sorry folks I hickjack this to mention that for a while dune has also been broken in OCaml master [we witness in Coq's CI] Do you see value in adding a I am almost done with other stuff so I shall shortly have time to see / debug the |
Yeah, it's fine to have it I think. It would be useful to know when dune starts failing on trunk as soon as possible. |
Ok I will take care of #2298 next week if still open. |
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
We should deactivate output of ocaml command printing for our tests. The message of error is never, I believe, useful. |
Makes sense. I didn't know it was possible at the time. |
I was thinking something directly inside dune, to always hide the output of ocaml commands in our test. I don't know if ocaml has a toggle for the printing of the source. |
But, you are right, |
A few things that we use are deprecated in 4.08:
Pervasives
tag
functions of theFormat
moduleSince we are currently keeping compatibility with OCaml >= 4.02, i simply disabled warning 3 for these. I also disabled the new warning 66 in dev mode, since it is causing a lot of code in Dune, and I expect in many projects to break. This warning is for unused
open!
, which we often use to keepopen Stdune
or similar even when they are not used.BTW, testing 4.08 in the CI is going to be annoying as a lot of compiler messages changed in 4.08. I.e. the captured output will be different between < 4.08 and >= 4.08 :(