Closed max-au closed 1 year ago
The issue is there is an exception in ex_doc that handles walking the ast for specs. Specifically here : https://github.com/elixir-lang/ex_doc/blob/935f2dac019d0bdcb470e68fc8b077e4e27bfe15/lib/ex_doc/language/erlang.ex#L463
A fix that I came up with is to check to see if the accumulator is empty :
name in [:"::", :when, :%{}, :{}, :|, :->, :record] and acc != [] ->
But I'm not sure if that's appropriate or introduces other problems. Probably should open an issue on ex_doc.
Edit :
Note if you wanted to get docs published quickly without waiting on this to be resolved what you could do is :
deps/ex_doc/lib/ex_doc/language/erlang.ex
at line 463 Resolved via https://github.com/elixir-lang/ex_doc/pull/1576
Discovered trying to ex_doc erlperf: https://github.com/max-au/erlperf/blob/master/src/erlperf.erl#L137
Although minimal repro could be just
Output is:
Renaming
record/1
intorecord1/1
makes the error go away.