0
我在更新iex中的@doc来测试它的外观。我遇到的问题是我必须退出iex才能查看更新的@doc文档。有没有办法在使用r()时重新加载模块@doc变量?r(module_name)不能在iex中重新加载@doc
iex -S mix
iex> h Coordinate.island/1
## Examples
iex> {:ok, coord } = Cordinate.start_link
Cordinate.island(coord)
:falls_town
更新@doc返回:none而不是:falls_town并保存文件。
iex> r(Coordinate)
iex> h Coordinate.island/1
# issue: still showing the old @doc example
## Examples
iex> {:ok, coord } = Cordinate.start_link
Cordinate.island(coord)
:falls_town # should be :none
尝试在'iex -S mix'中运行'recompile()'而不是'r(...)'。 – Dogbert
@Dogbert,工作非常感谢!所以我为了重新加载文档变量,你必须重新编译当前的Mix应用程序。 –