ocaml-community / utop

Universal toplevel for OCaml
Other
844 stars 112 forks source link

Feature request: automatically reload/recompile changed files in `dune utop` #459

Open sabine opened 1 year ago

sabine commented 1 year ago

Using dune utop in a project to load all the project's modules into utop,

it would be great if there was a workflow that reloads/recompiles modified/added/removed files.

Current workaround: quit and restart dune utop after modifying/adding/removing a file.

Possible solutions: a command "recompile" to trigger the reload/recompile workflow, or a "watch" mode that does it automatically.