[erlang-patches] [erlang-bugs] syntax_tools anonymous function error
Thu Dec 19 13:56:15 CET 2013
I have pushed a workaround for parse_trans.
parse_trans:revert/1 and parse_trans:revert_form/1 should be usable as drop-in
replacements to erl_syntax:revert(). The workaround verifies that a transform
is actually needed by generating a dummy module, reverting it and feeding it
to the linter; if the linter crashes, the abstract code needs to be fixed.
On 19 Dec 2013, at 11:56, David Welton <> wrote:
>> We will not merge this patch just before Christmas and release a R16B03-1.
>> Our suggestion is that:
>> 1. If you are affected by this bug, apply the patch yourself until it will
>> be merged into Erlang/OTP. (probably 17rc1 late January)
> That's not really a workable solution for most people using CB. Zach
> can correct me if I'm wrong, but I think the idea is going to simply
> put a warning in CB so that people trying to use it with a R16B03 -
> pretty much anyone who gets the "latest and greatest" from, say,
> Erlang Solutions .deb repository - will get a user friendly message
> saying that that release of Erlang is incompatible with Chicago Boss,
> so please downgrade.
>> 2. If you are using chicagoboss, stay on R16B02 if possible.
> That probably works now that people have been warned.
>> 3. compile "lib/syntax_tools/src/erl_syntax.erl" and put the beam up for
>> download on chicagoboss.org for R16B03 users.
> I am not an Erlang power user like you guys, but is it possible to
> include that code in CB itself, and conditionally load it, overriding
> the system version of that file, in the case of R16B03?
>> 4. add the patch to the rebar deps of chicagoboss.
> I think something like this could work too, but i don't know the
> details of how it would work out.
>> We will try to make sure things like this do not sneak into releases in the
>> future, and apologise for the inconvenience caused.
> I'm just a Chicago Boss user trying to figure out a solution that
> improves things for everyone. I realize that parse_transforms are
> kind of a 'dark corner' of Erlang, so I appreciate the help.
> Thank you
> David N. Welton
> erlang-patches mailing list
Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.
More information about the erlang-patches