Closed Hajto closed 5 years ago
Hi @Hajto, I cannot reproduce the issue. Note that the mix.lock for master is already using ExDoc 0.21.2, but I hardcoded both ExDoc and Makeup versions and I still could not reproduce it. What Elixir version are you uisng? Have you tried the latest?
Elixir 1.9.1 (compiled with Erlang/OTP 22)
lock on master is locked on 0.20.1 https://github.com/bblaszkow06/ex_doc_update_crash/blob/master/mix.lock#L3
I think this is strong hint may bo going wrong:
warning: redefining module Mix.Tasks.Docs (current version loaded from /Users/me/Projects/guide/_build/dev/lib/ex_doc/ebin/Elixir.Mix.Tasks.Docs.beam)
lib/mix/tasks/docs.ex:1
I couldn't reproduce this either. It looks like by switching branches you are switching between makeup versions and the stacktrace points to it as well. For a lack of a better answer, seems things are working on latest version? On slack you mentioned that you needed to additionally call mix deps.compile
to make it work?
I execute mix docs
twice.
Ah, good catch @Hajto. I am on Elixir master, which has a fix for this issue: https://github.com/elixir-lang/elixir/issues/9190 :) So it should be all good once a new Elixir version is out!
How to reproduce
Building above mentioned minimal project reproducing issue we discovered that it crashes only first time after checkout and only when there are some extras.
Additional information
We discovered this on our guide (https://github.com/membraneframework/guide). There is an error log for each extra. After second docs call it compiles fine.
Versions prior to update:
Versions after update:
Logs: