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
Original bug ID: 7571 Reporter: nbb Status: resolved (set by @xavierleroy on 2017-06-27T14:01:17Z) Resolution: unable to duplicate Priority: normal Severity: minor Version: 4.04.0 Category: toplevel
Bug description
the #use directive is described as
#use
Read, compile and execute source phrases from the given file.
but when i change the .ml and #use it while still an old corresponding .cmo is available to the toplevel this old file seems to be used.
Steps to reproduce
make a source file a.ml.
compile to bytecode a.cmo either in current directory or in _build directory as done by ocamlbuild.
edit and change a.ml.
open utop, if necessary add _build as #directory.
in utop, #use "a.ml";;
the old version will be loaded
The text was updated successfully, but these errors were encountered:
possibly the cleanest way of handling this would be to make a temporary, private copy of the freshly compiled a.cmo? probably better than just updating the .cmo as a side effect.
I am unable to reproduce the problem, either with the normal toplevel "ocaml" nor with "utop".
If you have a shell script that reproduces the problem using only "ocaml" (because "utop" is a separate project), please post it here and we'll investigate some more.
Original bug ID: 7571
Reporter: nbb
Status: resolved (set by @xavierleroy on 2017-06-27T14:01:17Z)
Resolution: unable to duplicate
Priority: normal
Severity: minor
Version: 4.04.0
Category: toplevel
Bug description
the #use directive is described as
#use
Read, compile and execute source phrases from the given file.
but when i change the .ml and #use it while still an old corresponding .cmo is available to the toplevel this old file seems to be used.
Steps to reproduce
make a source file a.ml.
compile to bytecode a.cmo either in current directory or in _build directory as done by ocamlbuild.
edit and change a.ml.
open utop, if necessary add _build as #directory.
in utop, #use "a.ml";;
the old version will be loaded
The text was updated successfully, but these errors were encountered: