ocaml-community / zed

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

`zed.3.2.2` exception `Zed_utf8.Out_of_bounds` #57

Open ahmadrasyidsalim opened 1 year ago

ahmadrasyidsalim commented 1 year ago

Hello there, I think something is up with zed.3.2.2

ahmadrasyidsalim@MacBook-Pro ~ % opam switch               
#   switch  compiler                    description
    4.14.1  ocaml-base-compiler.4.14.1  4.14.1
->  5.0.0   ocaml-base-compiler.5.0.0   5.0.0
ahmadrasyidsalim@MacBook-Pro ~ % opam list zed base utop -i
# Packages matching: (name-match(zed) | name-match(base) | name-match(utop)) & installed
# Name # Installed # Synopsis
base   v0.16.1     Full standard library replacement for OCaml
utop   2.12.1      Universal toplevel for OCaml
zed    3.2.2       Abstract engine for text edition in OCaml
ahmadrasyidsalim@MacBook-Pro ~ % utop
# #require "base";;
# open! Base;;
Fatal error: exception Zed_utf8.Out_of_bounds
Raised at Zed_utf8.next_error in file "src/zed_utf8.ml", line 30, characters 4-23
Called from UTop_main.fix_string in file "src/lib/uTop_main.ml", line 416, characters 18-43
Called from UTop_main.render_out_phrase in file "src/lib/uTop_main.ml", line 440, characters 17-34
Called from UTop_main.loop in file "src/lib/uTop_main.ml", line 822, characters 30-61
Re-raised at Location.report_exception.loop in file "parsing/location.ml", line 959, characters 14-25
Called from UTop.get_message in file "src/lib/uTop.ml", line 122, characters 2-11
Called from UTop_main.loop in file "src/lib/uTop_main.ml", line 828, characters 21-61
Called from UTop_main.main_aux in file "src/lib/uTop_main.ml", line 1526, characters 8-17
Called from UTop_main.main_internal in file "src/lib/uTop_main.ml", line 1541, characters 4-25

I downgrade zed.3.2.1 and it works

ahmadrasyidsalim@MacBook-Pro ~ % opam switch
#   switch  compiler                    description
    4.14.1  ocaml-base-compiler.4.14.1  4.14.1
->  5.0.0   ocaml-base-compiler.5.0.0   5.0.0
ahmadrasyidsalim@MacBook-Pro ~ % opam list zed base utop -i
# Packages matching: (name-match(zed) | name-match(base) | name-match(utop)) & installed
# Name # Installed # Synopsis
base   v0.16.1     Full standard library replacement for OCaml
utop   2.12.1      Universal toplevel for OCaml
zed    3.2.1       Abstract engine for text edition in OCaml
ahmadrasyidsalim@MacBook-Pro ~ % utop
# #require "base";;
# open! Base;;
#