Fix version issue#20
Draft
mhjd wants to merge 1 commit into
Draft
Conversation
Member
|
TODO:
|
balat
requested changes
Aug 22, 2024
Member
balat
left a comment
There was a problem hiding this comment.
The name of the last commit says it doesn't work. Fix
| ] | ||
| depends: [ | ||
| "ocaml" {> "4.13.1" & < "5.1.0"} | ||
| "ocaml" {= "5.1.0" } |
ffd3a19 to
6d47938
Compare
6d47938 to
4e000e9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ne pas merge, il y a un soucis au niveau du dernier commit !!!!
En effet, cela ne fonctionne pas avec la version ocaml 5.1.0.
Lors du passage d'OCaml 5.0.0 à OCaml 5.1.0, il y a des fichiers .mli qui ont été ajouté au projet OCaml.
Voici la pull request qui ajoutait des fichiers .mli : ocaml/ocaml#11288
Voici le fameux fichier .mli, celui qui pose soucis, qui a été ajouté lors de cette pull request : https://github.com/ocaml/ocaml/blob/trunk/ocamldoc/odoc_html.mli
Il manque la classe class virtual text dans le fichier .mli, voici un lien vers cette classe : https://github.com/ocaml/ocaml/blob/201b0ac48269c67c5667d0c2de49070384386a2c/ocamldoc/odoc_html.ml#L246
Voici où cette classe a été utilisé dans le projet wikidoc :
wikidoc/src/odoc_wiki/odoc_wiki.ml
Line 169 in a711eb3
Voici l'erreur que j'ai dans le projet wikidoc lorsque j'essaye de compiler :
Error: Unbound class Odoc_html.textOcaml 4.13 : modification d'un type
Vient de ce changement :
ocaml/ocaml#10174
Avant :
Après :
J'ai donc modifié en ignorant le second argument et ça marche :
Après j'ai pas trop compris le message de la PR, mais ça dit bien que c'est un extra argument:
Supression d'un warning
Simple changement d'appel de fonction :
Les labels étaient pas préciser ce qui cause maintenant un warning
mark_loops erreurs
printtyp.mark_loops a disparu à ce commit là : https://github.com/ocaml/ocaml/pull/10488/files
Updated ocamldoc to the new API by: (1) removing unncessary calls to Printtyp.mark_loops which were handled by the formatters; and
(2) replacing Printtyp.type_scheme_max ~b_reset_names: false with Printtyp.shared_type_scheme.
Files modified:
Il y a certain morceaux de code qui cause des erreurs quasi identique dans odoc_str.ml, ceux-ci ont été modifié. J'ai donc juste eu à copié les changement.
Y a un autre morceau de code qui n'était pas quasi identique mais ressemblait.
J'ai suivi la recommandation : (2) replacing Printtyp.type_scheme_max ~b_reset_names: false with Printtyp.shared_type_scheme
En ce qui concerne la supression de Printtyp.mark_loops t, c'est dis dans le premier conseil qu'il faut suprimé quand c'est "handled by the formatters", et juste après notre Printtyp.mark_loops t, y a un fmt :
Format.fprintf fmt "@[<hov 2>%s%s%a%s@] ->@ "
Donc j'ai supprimé.