Since Elixir 1.7 Module.get_attributes(__MODULE__, :spec) returns nil

in Elixir 1.6 I was able to do

Module.get_attribute(__MODULE__, :spec)

to get a structure with all the @spec annotations from a given module. Since Elixir 1.7 this seems to return nil. What change could have affected this behavior? Where should I start looking?

We were using this to access and process @spec annotations when processing a module in a __using__ module.

Thank you for any kind of hints!

Can you show a reproduceable example that works in 1.6 and not in 1.7? That would make a great test case for a bug report. :slight_smile:

Issue is already posted. Example provided differs slightly, though.

1 Like