[erlang-questions] Disabling a parse transform on a per-file basis?
Mon Aug 17 20:27:28 CEST 2015
It would indeed be an undefined function, rather than a compile error.
Good point, thanks.
It would, however, have died with an obvious error in development,
rather than deadlocking in production and paging me while I was
enjoying a pleasant glass or two of wine :-)
On 17 August 2015 at 09:05, Luis Rascão <luis.rascao@REDACTED> wrote:
> Hi Roger,
> From what i can see, there is no way to disable a parse transform on a
> basis. Even if there was you would get no compile errors, just undefined
> at runtime.
> On Mon, Aug 3, 2015 at 1:58 PM, Roger Lipscombe <roger@REDACTED>
>> It turns out that you can deadlock lager (2.0.3) if you attempt to use
>> lager:log (or lager:debug, etc.) from inside a lager backend.
>> I have the lager parse transform enabled in rebar.config for every
>> module in the application.
>> Is there a way to *remove* it for specific modules? Then, if anyone
>> attempts to use it in one of our lager backends, they'll get a compile
>> error, rather than a deadlock in production.
>> erlang-questions mailing list
> PGP fingerprint: F708 E141 AE8D 2D38 E1BC DF3D 1719 3EA0 647D 7260
More information about the erlang-questions