-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create command for printing magic numbers (#117)
* Create command for printing magic numbers * Fix ci failures
- Loading branch information
Showing
13 changed files
with
115 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(library | ||
(name ocaml_utils) | ||
(public_name merlin-lib.ocaml_utils) | ||
(libraries merlin_config merlin_utils) | ||
(libraries merlin_utils) | ||
(flags :standard -open Merlin_utils)) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
$ $MERLIN single version | revert-newlines | jq .value | ||
{ | ||
"version": "The Merlin toolkit version %VERSION%, for Ocaml 5.2.0\n", | ||
"magicNumbers": { | ||
"cmi_magic_number": "Caml1999I552", | ||
"ast_intf_magic_number": "Caml1999N552", | ||
"ast_impl_magic_number": "Caml1999M552", | ||
"cmt_magic_number": "Caml1999T552", | ||
"cms_magic_number": "Caml1999S552", | ||
"index_magic_number": "Merl2023I552" | ||
} | ||
} | ||
|
||
$ ocaml-index magic-numbers | jq | ||
{ | ||
"cmi_magic_number": "Caml1999I552", | ||
"ast_intf_magic_number": "Caml1999N552", | ||
"ast_impl_magic_number": "Caml1999M552", | ||
"cmt_magic_number": "Caml1999T552", | ||
"cms_magic_number": "Caml1999S552", | ||
"index_magic_number": "Merl2023I552" | ||
} | ||
|
||
Verify there is no difference between Merlin and Ocaml-index | ||
$ $MERLIN single version | revert-newlines | jq --sort-keys .value.magicNumbers > merlin-magic-numbers.json | ||
$ ocaml-index magic-numbers | jq --sort-keys > ocaml-index-magic-numbers.json | ||
$ diff merlin-magic-numbers.json ocaml-index-magic-numbers.json |