[erlang-questions] [ANN] erlang-formatter 1.0.0 (go fmt for Erlang)

Tristan Sloughter t@REDACTED
Mon Aug 29 03:06:34 CEST 2016

Oh good, that should be the only time it spits out AST, I think.

I'll have to upgrade my rebar3 plugin to use the new OTP-19 version.

Though is still ugly as you mention, so not really usable for non-
generated code :(

Tristan Sloughter

On Sun, Aug 28, 2016, at 04:48 PM, Mark Bucciarelli wrote:
> On Sun, Aug 28, 2016 at 8:53 AM, Pierre Fenoll
> <pierrefenoll@REDACTED> wrote:
>> Ah so I tried erl_tidy and like Tristan says over at
>> https://github.com/tsloughter/erl_tidy :
>> Oh boy my specs!
> OTP-19 includes support for -spec's and -types. (see
> https://github.com/erlang/otp/pull/1034).  Not quite pretty yet, but
> no data loss.  :)
>> How do you handle the cases where erl_tidy spews out AST code instead
>> of compilable code?
> Could you give me a specific case of what you mean?
> I tried erlfmt'd the entire OTP-19 erlang source tree and grepping the
> output for the string '{tree', but the only hits where files that
> included the string to start with.  Any my google-foo came up empty.
> Thanks,
> Mark
> _________________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160828/971c261c/attachment.htm>

More information about the erlang-questions mailing list