package merlin-lib
Merlin's libraries
Install
Dune Dependency
Authors
Maintainers
Sources
merlin-5.5-503.tbz
sha256=67da3b34f2fea07678267309f61da4a2c6f08298de0dc59655b8d30fd8269af1
sha512=1fb3b5180d36aa82b82a319e15b743b802b6888f0dc67645baafdb4e18dfc23a7b90064ec9bc42f7424061cf8cde7f8839178d8a8537bf4596759f3ff4891873
doc/src/merlin-lib.ocaml_typing/magic_numbers.ml.html
Source file magic_numbers.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
open Std module Cmi = struct type error = | Not_an_interface of string | Wrong_version_interface of string * string | Corrupted_interface of string exception Error of error let to_version_opt = function | "Caml1999I017" -> Some "4.02" | "Caml1999I020" -> Some "4.03" | "Caml1999I021" -> Some "4.04 or 4.05" | "Caml1999I022" -> Some "4.06" | "Caml1999I023" -> Some "4.07.0" | "Caml1999I024" -> Some "4.07.1" | "Caml1999I025" -> Some "4.08" | "Caml1999I026" -> Some "4.09" | "Caml1999I027" -> Some "4.10" | "Caml1999I028" -> Some "4.11" | "Caml1999I029" -> Some "4.12" | "Caml1999I030" -> Some "4.13" | "Caml1999I031" -> Some "4.14" | "Caml1999I032" -> Some "5.0" | "Caml1999I033" -> Some "5.1" | "Caml1999I034" -> Some "5.2" | "Caml1999I035" -> Some "5.3" | _ -> None let () = assert (to_version_opt Config.cmi_magic_number <> None) open Format_doc module Style = Misc.Style let report_error ppf = function | Not_an_interface filename -> fprintf ppf "%a@ is not a compiled interface" (Style.as_inline_code Location.Doc.filename) filename | Wrong_version_interface (filename, compiler_magic) -> let program_name = Lib_config.program_name () in begin match to_version_opt compiler_magic with | None -> fprintf ppf "Compiler version mismatch: this project seems to be compiled with a \ version of the OCaml compiler that is not supported by this version \ of %s. OCaml language support will not work properly until this \ problem is fixed. \n\ Hint: It seems that the project is built with a newer OCaml compiler \ version that the running %s version does not know about. Make sure \ your editor runs a version of %s that supports this version of the \ compiler. \n\ This diagnostic is based on the compiled interface file: %a" program_name program_name program_name Location.Doc.filename filename | Some version -> fprintf ppf "Compiler version mismatch: this project seems to be compiled with \ version %s of the OCaml compiler, but the running %s supports OCaml \ version %s. OCaml language support will not work properly until this \ problem is fixed. \n\ Hint: Make sure your editor runs a version of %s that supports the \ correct version of the compiler. \n\ This diagnostic is based on the compiled interface file: %a" version program_name (Option.get @@ to_version_opt Config.cmi_magic_number) program_name Location.Doc.filename filename end | Corrupted_interface filename -> fprintf ppf "Corrupted compiled interface@ %a" (Style.as_inline_code Location.Doc.filename) filename let () = Location.register_error_of_exn (function | Error err -> Some (Location.error_of_printer_file report_error err) | _ -> None ) end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>