You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing utop with opam I have the following ~/.ocamlinit:
(* ## added by OPAM user-setup for ocamltop / base ## 3ec62baf6f9c219ae06d9814069da862 ## you can edit, but keep this line *)
#use "topfind";;
(* ## end of OPAM user-setup addition for ocamltop / base ## keep this line *)
With this ~/.ocamlinit my rtop unsurprisingly fails with
Fatal error: exception File ".ocamlinit", line 1, characters 3-5:
Error: Unclosed "(" (opened line 1, column 0)
Running into this as well. Interestingly rtop does seem to generate ~/.reasoninit:
/* Added by rtop */
let () =
try (Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")) {
| Not_found => ()
};
But it still tries to load the ~/.ocamlinit and fails because of the same syntax errors you posted.
EDIT: looks like maybe the reasoninit file was left from an older install, I can't find any refs to it in the current rtop, but its there in the history.
After installing
utop
withopam
I have the following~/.ocamlinit
:With this
~/.ocamlinit
myrtop
unsurprisingly fails withBut if I replace default
~/.ocamlinit
withas suggested at https://reasonml.chat/t/rtop-and-ocamlinit-syntax-errors-and-confusion/1813, this (also unsurprisingly) breaks
utop
:Can
rtop
use something like~/.reasonmlinit
or (preferrably) use~/.ocamlinit
converted on-the-fly withrefmt
?The text was updated successfully, but these errors were encountered: