Behaviour signatures removed from Elixir?
In elixir-lang/elixir@d33463dcd5e36b4c5f8190dbd69d4f34cf757e36, @josevalim removed the signature info from the Behaviour docs. This is generating a match error in ExDoc.Retriever.get_callback/4, where we use the signature information in the ExDoc.FunctionNode. Does this information live some other place in the beam file? Or is there a better way to capture it for the docs?
The information is gone. I am planning to update ex_doc when it is close to release v0.13. :)
Ah, the signature information can be retrieved from BEAM files, similar to how we retrieve specs.
A pull request is welcome if you are planning to tackle this. :)
Is this functionality something that should live in Elixir or pull it out into ex_doc? I might have cycles to look at it sometime soon.
We already get the callbacks with Kernel.Typespec.beam_callbacks(module), we should probably just raise if there is a behaviour doc and we can't find the appropriate callback. When printing the docs, we can simply print the callback (instead of the previous signature we had).
Thanks @jwarwick!