Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point at utop-full #424

Open
emillon opened this issue Mar 14, 2023 · 0 comments
Open

Point at utop-full #424

emillon opened this issue Mar 14, 2023 · 0 comments

Comments

@emillon
Copy link
Collaborator

emillon commented Mar 14, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant