ocaml-community / zed

Abstract engine for text edition in OCaml
Other
121 stars 16 forks source link

zed won't compile after "opam upgrade" #35

Closed mvanier closed 4 years ago

mvanier commented 4 years ago

I'm getting this error message when trying to recompile zed after an upgrade:

opam install zed The following actions will be performed: ∗ install zed 2.0.5

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><> 🐫 [zed.2.0.5] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><> 🐫 [ERROR] The compilation of zed failed at "/Users/mvanier/.opam/opam-init/hooks/sandbox.sh build dune build -p zed -j 7".

=== ERROR while compiling zed.2.0.5 ==========================================

context 2.0.6 | macos/x86_64 | ocaml-base-compiler.4.09.0 | https://opam.ocaml.org#65eb41e7

path ~/.opam/4.09.0/.opam-switch/build/zed.2.0.5

command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p zed -j 7

exit-code 1

env-file ~/.opam/log/zed-19510-1872ec.env

output-file ~/.opam/log/zed-19510-1872ec.out

output

Error: The implementation src/zed_string.ml

[...]

val compare_index :

t ->

('a, 'b) result ->

('a, 'b) result ->

ok:('a -> 'a -> int) -> error:('b -> 'b -> int) -> int

is not included in

val compare_index : t -> index -> index -> int

File "src/zed_string.mli", line 184, characters 0-46:

Expected declaration

File "src/zed_string.ml", line 454, characters 6-19:

Actual declaration

This is with ocaml 4.0.9 but I had the same issue when trying to compile 4.10.0.

mvanier commented 4 years ago

Looking at the closed issues I see this is a bug awaiting a fix. Sorry to waste your time!