Ich aktualisiere meine @ doc während iex> um zu testen, wie es aussieht. Das Problem, auf das ich stoße, ist, dass ich iex beenden muss, um die aktualisierte Dokumentation von @doc zu sehen. Gibt es eine Möglichkeit, die Module @ doc Variablen bei der Verwendung von r() neu zu laden?r (Modulname) nicht neu laden @doc in iex
iex -S mix
iex> h Coordinate.island/1
## Examples
iex> {:ok, coord } = Cordinate.start_link
Cordinate.island(coord)
:falls_town
Aktualisiert @doc zurück: none anstelle von: fall_town und Datei speichern.
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
Versuchen Sie 'recompile()' anstelle von 'r (...)' in 'iex -S mix' auszuführen. – Dogbert
@Dogbert, das hat viel geholfen! Um doc-Variablen neu zu laden, müssen Sie die aktuelle Mix-Anwendung neu kompilieren. –