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

utop should't crash when the library you load has the same name as utop's dependencies #463

Open
davesnx opened this issue Sep 22, 2023 · 1 comment

Comments

@davesnx
Copy link

davesnx commented Sep 22, 2023

Hi,

I have found an issue where I'm developing a library that exposes "React" and when running dune utop it crashes with opam's react.

Is there any way utop doesn't load react on the session or namespaced at least?
(The problem probably happens with other dependencies)

File "_none_", line 1:
Error: Files /home/user/builds/buildbot999/ahrefs/monorepo/_opam/lib/server-reason-react/react/react.cma(React)
       and /home/user/builds/buildbot999/ahrefs/monorepo/_opam/lib/react/react.cma(React)
       both define a module named React
@davesnx
Copy link
Author

davesnx commented Sep 22, 2023

utop doesn't load dependencies, it's dune ocaml/dune#8735.

Closing this, and sorry for the noise.

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