ocaml-opam / opam-user-setup

Simplify the configuration of editors for using OCaml tools
Other
81 stars 12 forks source link

Failure on fresh system #24

Open yminsky opened 8 years ago

yminsky commented 8 years ago

I just tried it out on a freshly installed Debian system. Here's what happened:

$ opam user-setup install
/bin/sh: 1: vim: not found
ocamltop > base > .ocamlinit: adding configuration
emacs > /home/opam/.emacs: installing new config file template
emacs > base > .emacs: adding configuration
emacs > base > .emacs.d/opam-user-setup.el: adding configuration
emacs > tuareg > .emacs.d/opam-user-setup.el: adding configuration
opam-user-setup: internal error, uncaught exception:
                 Sys_error("/home/opam/.emacs.d/opam-user-setup.el: No such file or directory")

I imagine I can fix the first problem by installing vim, but it doesn't seem like I should need to. The second problem I don't know what to say about.

yminsky commented 8 years ago

After installing vim, that part works cleanly.

The other problem I believe was from the lack of a .emacs.d directory. When I created it manually, it worked fine. Seems like it makes sense to make the directory creation automatic, though.

AltGr commented 8 years ago

the first error is just output of a subcommand leaking, nothing of concern (but the output needs to be cleaned up, thanks for reporting).

the second is more worrying, I believed I had fixed that already. Are you using the new release (0.5) ? It's only a few days old.

yminsky commented 8 years ago

No, it's 0.4.