alexozer / flitter

A Livesplit-inspired speedrunning split timer for Linux/macOS terminal. Supports global hotkeys.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Won't build. Deprecated warnings.

SysGh-st opened this issue · comments

I get a bunch of "alert deprecated" errors when trying to build this on Arch:

File "src/colors.ml", line 34, characters 27-44: 34 | let h = Float.mod_float (Unix.gettimeofday ()) period /. period *. 360. in ^^^^^^^^^^^^^^^^^ Error (alert deprecated): module Core_kernel.Unix [since 2020-03] Core_kernel shadows Unix. Use Core.Unix, which overrides some of Unix's behavior. If necessary, Unix is available and unshadowed as Caml_unix. File "src/colors.ml", line 34, characters 27-44: 34 | let h = Float.mod_float (Unix.gettimeofday ()) period /. period *. 360. in ^^^^^^^^^^^^^^^^^ Error: Unbound value Unix.gettimeofday File "src/splits.ml", line 6, characters 57-74: 6 | let curr_time = match now with Some t -> t | None -> Unix.gettimeofday () in ^^^^^^^^^^^^^^^^^ Error (alert deprecated): module Core_kernel.Unix [since 2020-03] Core_kernel shadows Unix. Use Core.Unix, which overrides some of Unix's behavior. If necessary, Unix is available and unshadowed as Caml_unix. File "src/splits.ml", line 6, characters 57-74: 6 | let curr_time = match now with Some t -> t | None -> Unix.gettimeofday () in ^^^^^^^^^^^^^^^^^ Error: Unbound value Unix.gettimeofday File "src/duration.ml", line 106, characters 22-39: 106 | between time_float (Unix.gettimeofday ()) ^^^^^^^^^^^^^^^^^ Error (alert deprecated): module Core_kernel.Unix [since 2020-03] Core_kernel shadows Unix. Use Core.Unix, which overrides some of Unix's behavior. If necessary, Unix is available and unshadowed as Caml_unix. File "src/duration.ml", line 106, characters 22-39: 106 | between time_float (Unix.gettimeofday ()) ^^^^^^^^^^^^^^^^^ Error: Unbound value Unix.gettimeofday File "src/loadsave.ml", line 5, characters 16-27: 5 | time : string sexp_option; ^^^^^^^^^^^ Error (alert deprecated): Core_kernel.sexp_option [since 2019-03] use [@sexp.option] instead File "src/loadsave.ml", line 24, characters 20-31: 24 | duration : string sexp_option; ^^^^^^^^^^^ Error (alert deprecated): Core_kernel.sexp_option [since 2019-03] use [@sexp.option] instead File "src/loadsave.ml", line 50, characters 21-32: 50 | golds : gold array sexp_option; ^^^^^^^^^^^ Error (alert deprecated): Core_kernel.sexp_option [since 2019-03] use [@sexp.option] instead File "src/loadsave.ml", line 51, characters 31-42: 51 | personal_best : archived_run sexp_option; ^^^^^^^^^^^ Error (alert deprecated): Core_kernel.sexp_option [since 2019-03] use [@sexp.option] instead File "src/loadsave.ml", line 52, characters 30-41: 52 | world_record : archived_run sexp_option; ^^^^^^^^^^^ Error (alert deprecated): Core_kernel.sexp_option [since 2019-03] use [@sexp.option] instead File "src/loadsave.ml", line 53, characters 25-34: 53 | history : archived_run sexp_list; ^^^^^^^^^ Error (alert deprecated): Core_kernel.sexp_list [since 2019-03] use [@sexp.list] instead Done: 95/109 (jobs: 1)%