1

我希望dune utop或另一个 OCaml 顶级在代码运行时获取我对代码所做的更改。似乎dune utop --watch是为了做到这一点而设计的。真的吗?我该如何使用它?

在我的实验dune utop --watch中,忽略了我保存到模块源代码中的更改。执行dune build命令的变体似乎也没有帮助。

尽管显然与我不兼容,dune但我也尝试过#use并且#mod_use没有任何运气的指令:utop在重新启动之前似乎仍然没有收到我的代码更改。

4

1 回答 1

0

嗯..似乎(一旦你安装了inotifywaitdune build --watch真的开始工作,但dune utop --watch仍然没有选择保存到源文件的更改..

--watchoption 在中被接受为有效dune utop --watchdune utop --help确实将其宣传为受支持,但似乎这只是一个错误dunedune utop --watch实际上的行为方式与 simple 完全相同dune utop

这本来是一个很好的选择,但显然它只是不受支持,而且可能无法支持......

于 2019-05-25T23:35:44.963 回答