asn1ct verbose

Tuncer Ayaz tuncer.ayaz@REDACTED
Wed Mar 31 22:40:15 CEST 2010


On Wed, Mar 31, 2010 at 10:28 PM, Ruslan Babayev <ruslan@REDACTED> wrote:
> I didn't have a chance to have a look at how asn1ct handles
> warnings. For warnings verbose flag makes sense. But I think
> static output like below should be removed.
>
> Erlang ASN.1 version "1.6.13" compiling
> "/Users/ruslan/tmp/cdrdump/asn1/Attribute-ASN1Module.asn1"
> Compiler Options: [ber,report_errors,
>                   {cwd,"/Users/ruslan/tmp/cdrdump/asn1"},
>                   {outdir,"/Users/ruslan/tmp/cdrdump/asn1"},
>                   {i,"."},
>                   {i,"/Users/ruslan/tmp/cdrdump/asn1"}]
> --{generated,"/Users/ruslan/tmp/cdrdump/asn1/Attribute-ASN1Module.asn1db"}--
> --{generated,"/Users/ruslan/tmp/cdrdump/asn1/Attribute-ASN1Module.hrl"}--
> --{generated,"/Users/ruslan/tmp/cdrdump/asn1/Attribute-ASN1Module.erl"}--
> ok
>
>
>
> On Mar 29, 2010, at 7:02 PM, Tuncer Ayaz wrote:
>
>> On Tue, Mar 30, 2010 at 3:37 AM, Ruslan Babayev <ruslan@REDACTED> wrote:
>>> Merhaba Ayaz,
>>>
>>> I think the verbosity of asn1ct was out of place to begin with. After all,
>>> erlc and snmp compiler are not "verbose" and don't have a flag to turn it
>>> on/off. Just like gcc or any other compiler doesn't spew out it's version
>>> and the fact that it's compiling or generating something.
>>
>> erlc has a -v option and it's actually used but was not
>> in asn1ct. Default is verbose and that might explain why

Correction: I meant to write: 'Default is verbose=false'

>> you never saw verbose output.
>> See yecc for verbose logging:
>> either
>> $ erlc -v foobar.yrl
>> or
>>> yecc:file("foobar.yrl", [{verbose,true}]).
>>
>> So it's not ignored everywhere.
>>
>> Without -v yecc does not print warnings.

Correction: yecc does print warnings.


More information about the erlang-patches mailing list