jelly-beam / rebar3_ex_doc

rebar3 plugin for generating docs with ex_doc
Apache License 2.0
43 stars 13 forks source link

Odd output for OTP 26.2.3 #88

Closed kivra-pauoli closed 6 months ago

kivra-pauoli commented 6 months ago

Output for 26.2.2

===> Running ex_doc for <tool>

Output for 26.2.3

===> Running ex_doc for agreements
===>
===>

Not sure where those extra lines (where ===> is coloured red) are coming from... 🤔

Just wanted to drop this here before I dig further into the code.

kivra-pauoli commented 6 months ago

This seems to be ending in a crash, in rebar3_ex_doc.erl's ex_doc/3:

        {error, {_Code, Errors}} ->
            rebar_api:error("~ts", [Errors]),
            ?RAISE({ex_doc, Errors})

Since Errors is an empty list we get no output.

Running the command by itself is ending in a segmentation fault. Will try to dig deeper.

kivra-pauoli commented 6 months ago

This seems to go away if/when you delete _build. 🤷

Edit: not quite true. I used OTP 26.2.2 before, had Hex (local) cache working Ok, then ran rebar3_ex_doc (with 26.2.3) and got

===> Fetching rebar3_ex_doc v0.2.22
===> Download error, using cached file at ~/.cache/rebar3/hex/hexpm/packages/rebar3_ex_doc-0.2.22.tar

Still runs Ok, but only if you have local cache.

kivra-pauoli commented 6 months ago

Yeah, so this happens, for me, under the following circumstances:

A couple of solutions come to mind: