Describe the bug
As the title says, the formatter currently crashes sometimes when formatting modules that include the -export_type(([...]). qualifier. It's funny because #328 included examples with it 🤷🏻
To Reproduce
Take this very minimal module and format it
-module(abc).
-format #{sort_arity_qualifiers => true}.
-type wololo() :: ok.
-type ninjalui() :: ok.
-export_type([wololo/0, ninjalui/0]).
Expected behavior
The export type list should have ben formatted as -export_type([ninjalui/0, wololo/0]). but instead the formatter crashes as follows:
Describe the bug As the title says, the formatter currently crashes sometimes when formatting modules that include the
-export_type(([...]).
qualifier. It's funny because #328 included examples with it 🤷🏻To Reproduce
Take this very minimal module and format it
Expected behavior The export type list should have ben formatted as
-export_type([ninjalui/0, wololo/0]).
but instead the formatter crashes as follows:Rebar3 Log I am skipping this bit because I have the fix ready