ocsigen / eliom

Multi-tier framework for programming web and mobile applications in OCaml.
http://eliom.org
Other
301 stars 53 forks source link

Error when running ocsigenserver: The module `B' is not yet initialized #775

Closed bguil closed 9 months ago

bguil commented 9 months ago

With Ocaml 5.1.0 and eliom 10.1.2 installed on MacOSX, I have a strange bug which seems to be linked to the names of the files:

Step to reproduce:

NOTE: if you rename a.eliom into c.eliom, the error disappears!

Is seems that the problem is linked to the names of the modules:

Note also that I do not have the error with OCaml 4.14.1 and eliom 10.1.2

bguil commented 9 months ago

The problem is still present with the last Ocaml release (5.1.1) announced today.

vouillon commented 9 months ago

Thanks for your detailed bug report! This is fixed by #776.

bguil commented 9 months ago

Thanks for the fix. I've updated the Makefile following your PR, it's fixed.

I'd also like to take this opportunity to also mention a problem that sometimes occurs. When a module name is changed, sometimes doing make clean && make is not enough and I have to run rm -rf _deps to come to a running version. Perhaps the Makefile can be improved to avoid this?

balat commented 9 months ago

Thank you for the bug report. We will release a new version version soon. It will also contain a new template with dune-based build system. I recommend to switch to this one.