<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Oh good, that should be the only time it spits out AST, I think.<br></div>
<div><br></div>
<div>I'll have to upgrade my rebar3 plugin to use the new OTP-19 version.<br></div>
<div><br></div>
<div>Though is still ugly as you mention, so not really usable for non-generated code :(<br></div>
<div><br></div>
<div id="sig19496053"><div class="signature">--<br></div>
<div class="signature">Tristan Sloughter<br></div>
<div class="signature">t@crashfast.com<br></div>
<div class="signature"><br></div>
</div>
<div><br></div>
<div><br></div>
<div>On Sun, Aug 28, 2016, at 04:48 PM, Mark Bucciarelli wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div><div defang_data-gmailquote="yes"><div>On Sun, Aug 28, 2016 at 8:53 AM, Pierre Fenoll <span dir="ltr"><<a href="mailto:pierrefenoll@gmail.com">pierrefenoll@gmail.com</a>></span> wrote:<br></div>
<blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;" defang_data-gmailquote="yes"><div dir="ltr"><div>Ah so I tried erl_tidy and like Tristan says over at <a href="https://github.com/tsloughter/erl_tidy">https://github.com/tslought<wbr>er/erl_tidy</a> :<br></div>
<div>Oh boy my specs!<br></div>
</div>
</blockquote><div><br></div>
<div>OTP-19 includes support for -spec's and -types. (see <a href="https://github.com/erlang/otp/pull/1034">https://github.com/erlang/otp/pull/1034</a>). Not quite pretty yet, but no data loss. :)<br></div>
<div> <br></div>
<blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;" defang_data-gmailquote="yes"><div dir="ltr"><div><br></div>
<div>How do you handle the cases where erl_tidy spews out AST code instead of compilable code?<br></div>
</div>
</blockquote><div><br></div>
<div>Could you give me a specific case of what you mean?<br></div>
<div><br></div>
<div>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.<br></div>
<div><br></div>
<div>Thanks,<br></div>
<div><br></div>
<div>Mark<br></div>
</div>
</div>
</div>
<div><u>_______________________________________________</u><br></div>
<div>erlang-questions mailing list<br></div>
<div><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br></div>
<div><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a><br></div>
</blockquote><div><br></div>
</body>
</html>