Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zed.3.2.2 exception Zed_utf8.Out_of_bounds #57

Open
ahmadrasyidsalim opened this issue Jun 23, 2023 · 0 comments · Fixed by ocaml-community/utop#442
Open

zed.3.2.2 exception Zed_utf8.Out_of_bounds #57

ahmadrasyidsalim opened this issue Jun 23, 2023 · 0 comments · Fixed by ocaml-community/utop#442
Assignees
Labels

Comments

@ahmadrasyidsalim
Copy link

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;;
#                                                                                                                                                                                                           
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants