ocaml-community / utop

Universal toplevel for OCaml
Other
833 stars 110 forks source link

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

Open davesnx opened 9 months ago

davesnx commented 9 months ago

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 commented 9 months ago

utop doesn't load dependencies, it's dune https://github.com/ocaml/dune/pull/8735.

Closing this, and sorry for the noise.