OCaml Forge

Detail: [#1115] Provide a clear error message when `setup.ml` are not done in order (-configure missing)

Bugs: Browse | Download .csv | Monitor

[#1115] Provide a clear error message when `setup.ml` are not done in order (-configure missing)

Date:
2012-03-13 13:08
Priority:
3
State:
Open
Submitted by:
Gabriel Scherer (bluestorm)
Assigned to:
Sylvain Le Gall (gildor-admin)
Product:
OASIS
Due in version:
None
Resolution:
None
Severity:
enhancement
Version:
None
Component:
OASIS
Operating System:
None
 
URL:
Summary:
Provide a clear error message when `setup.ml` are not done in order (-configure missing)

Detailed description
After "oasis setup", if I use "ocaml setup.ml -build", I get the following error message:

E: Unable to load environment, the file '...../setup.data' doesn't exist.

It would be nice if this error message was followed by something more useful for the user, such as

You probably need to run "ocaml setup.ml -configure" first

I have the same error if I try "ocaml setup.ml -install" first. However, if I first -configure then -install, I get:

W: Nothing to install for findlib library '....'

Maybe it would be possible to also give notice that maybe the "-build" step is missing in this case? I suspect that is less important (one often forget to -configure, assuming that there will be a default configuration, but forgetting to -build is less obvious...).

It's strange that oasis does not notice that something is wrong in the -install case (where are the compiled files for the module?) and just outputs a warning and consider installation complete.


Followup

Message
Date: 2012-04-02 15:56
Sender: Sylvain Le Gall

>It's strange that oasis does not notice that something is wrong in the -install case (where are the compiled files for the module?) and just outputs a warning and consider installation complete.

Not really, this is just an empty list... But this is probably worth a
E: Nothing to install, you need to run "ocaml setup.ml -build" before

Attached Files:

Changes:

Field Old Value Date By
assigned_tonone2012-07-06 08:33gildor-admin