ocaml / tuareg

Emacs OCaml mode
GNU General Public License v3.0
360 stars 79 forks source link

Possible bug : missing file tuareg-compat #281

Closed ysalmon closed 1 year ago

ysalmon commented 2 years ago

Hello, I have recently pinned my tuareg opam install to the git repo, and at first it did not work : upon opening a .ml file, Emacs (26.3) would complain about tuareg-compat missing and abort loading the major mode.

I found a tuareg-compat.el in my .opam/4.14.0/.opam-switch/sources/tuareg/ and copied it to .opam/4.14.0/share/emacs/site-lisp/ and it then worked.

It might be me just having done something wrong beforehand, or it might be a bug in the scripts that build tuareg from the sources.

Chris00 commented 1 year ago

The file should be installed during the installation. What method do you use to install Tuareg?

andersfugmann commented 1 year ago

FYI: I just updated to using tuareg 3.0.0 through opam, and I'm getting the same error. Copying tuareg-compat.el to share/emacs/site-lisp/ resolves the problem. Using ocaml 5.0.0~alpha1 / opam 2.1

andersfugmann commented 1 year ago

It looks like the tuareg-compat is missing from tuareg.install.