-
Notifications
You must be signed in to change notification settings - Fork 206
ocaml version is set to 5.4.0 by default to allow effects #2750
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
Conversation
|
Honestly, I can of want to make a release just for this. |
Julow
left a comment
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.
I totally agree with this change !
ocaml-version must incremented, otherwise everyone has to set it. I'm also happy to do a big increment, compared to a short increment after each release, so that the disruption happens less often and is more easily recognized and fixed.
Honestly, I can of want to make a release just for this.
I'm not fond of releasing often, as each release has a cost for the community. Each release create incompatibilities for people that install OCamlformat using Opam.
The tests don't pass according to the CI. Can you check ?
Agreed, releasing often is an issue, but when I found this, I thought for a while that we actually did not have compatibility with 5.4, that we forgot to add some of the syntax or something. It took looking at the tests to understand what was happening, and I don't think a regular user of ocamlformat would be able to, and he would just get the impression that ocamlformat is not compatible with the new syntax. Even though releasing often is problematic, I think this is worse. I will check the tests. |
|
The tests are failing because |
d436064 to
2a77a70
Compare
|
@Julow I could indeed replicate the failure with a 4.14 switch, but I still don't understand whats happening or how to fix it |
85864c7 to
21e756c
Compare
|
It was a missing |
Right now you need to have --ocaml-version=5.3.0 or 5.4.0 to be able to use the effect syntax.
This is a big issue because otherwise you get a very annoying syntax error message and its difficult to understand what is happening.
This causes a bunch of diffs elsewhere in the tests. Its mostly improvements in my opinion. Some of it is related to let-punning, we should check it works correctly.