Point at utop-full
emillon opened this issue · 0 comments
emillon commented
A common support request for utop is that when using parts compiler-libs
, the following error happens:
utop # #require "compiler-libs.common";;
utop # Location.report_warning;;
Line 1:
Error: Reference to undefined global `Location'
This is because the toplevel is expunged, and the correct fix is to use utop-full
:
utop # #require "compiler-libs.common";;
utop # Location.report_warning;;
- : Warnings.loc -> Warnings.t -> Location.report option = <fun>
utop
itself should hint at this, for example by displaying a warning at #require
time or by installing an exception handler.