| Author |
Message |
|
| Guest |
Posted: Wed Mar 31, 2010 8:29 pm |
|
|
|
Guest
|
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@babayev.com> 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
> 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.
>
>> I would rather see all those io:format's removed. There should be output
>> only when something goes wrong.
>
> Please reply to my mail on erlang-patches that you think removing
> at least the static version string is a good idea.
> Feel free to call for removal of all of the logging if you want.
> I have no objection against that.
> Either way we will solve it to not print unwanted messages .
>
>> Regards,
>> Ruslan
>>
>> On Sun, Mar 28, 2010 at 2:13 PM, Tuncer Ayaz <tuncer.ayaz@gmail.com> wrote:
>>>
>>> See
>>>
>>> http://www.erlang.org/cgi-bin/ezmlm-cgi?3:mss:957:201003:gkeghjmcebaelnakiplc
>>
>>
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Wed Mar 31, 2010 8:29 pm |
|
|
|
Guest
|
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@babayev.com> 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
> 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.
>
>> I would rather see all those io:format's removed. There should be output
>> only when something goes wrong.
>
> Please reply to my mail on erlang-patches that you think removing
> at least the static version string is a good idea.
> Feel free to call for removal of all of the logging if you want.
> I have no objection against that.
> Either way we will solve it to not print unwanted messages .
>
>> Regards,
>> Ruslan
>>
>> On Sun, Mar 28, 2010 at 2:13 PM, Tuncer Ayaz <tuncer.ayaz@gmail.com> wrote:
>>>
>>> See
>>>
>>> http://www.erlang.org/cgi-bin/ezmlm-cgi?3:mss:957:201003:gkeghjmcebaelnakiplc
>>
>>
Post received from mailinglist |
|
|
| Back to top |
|
| t |
Posted: Wed Mar 31, 2010 8:40 pm |
|
|
|
User
Joined: 30 Sep 2008
Posts: 133
|
On Wed, Mar 31, 2010 at 10:28 PM, Ruslan Babayev <ruslan@babayev.com> 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@babayev.com> 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.
________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| t |
Posted: Wed Mar 31, 2010 8:41 pm |
|
|
|
User
Joined: 30 Sep 2008
Posts: 133
|
On Wed, Mar 31, 2010 at 10:28 PM, Ruslan Babayev <ruslan@babayev.com> 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@babayev.com> 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.
________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| t |
Posted: Wed Mar 31, 2010 8:53 pm |
|
|
|
User
Joined: 30 Sep 2008
Posts: 133
|
On Wed, Mar 31, 2010 at 10:28 PM, Ruslan Babayev 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.
Warnings should be printed regardless of verbose flag.
> 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
________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| t |
Posted: Wed Mar 31, 2010 8:54 pm |
|
|
|
User
Joined: 30 Sep 2008
Posts: 133
|
On Wed, Mar 31, 2010 at 10:28 PM, Ruslan Babayev 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.
Warnings should be printed regardless of verbose flag.
> 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
________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Wed Mar 31, 2010 8:56 pm |
|
|
|
Guest
|
What would verbose flag be used for, then?
On Mar 31, 2010, at 1:53 PM, Tuncer Ayaz wrote:
> On Wed, Mar 31, 2010 at 10:28 PM, Ruslan Babayev 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.
>
> Warnings should be printed regardless of verbose flag.
>
>> 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
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Wed Mar 31, 2010 8:56 pm |
|
|
|
Guest
|
What would verbose flag be used for, then?
On Mar 31, 2010, at 1:53 PM, Tuncer Ayaz wrote:
> On Wed, Mar 31, 2010 at 10:28 PM, Ruslan Babayev 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.
>
> Warnings should be printed regardless of verbose flag.
>
>> 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
Post received from mailinglist |
|
|
| Back to top |
|
| t |
Posted: Wed Mar 31, 2010 9:05 pm |
|
|
|
User
Joined: 30 Sep 2008
Posts: 133
|
On Wed, Mar 31, 2010 at 10:55 PM, Ruslan Babayev <ruslan@babayev.com> wrote:
> What would verbose flag be used for, then?
For example yecc will show warnings that are safe to ignore
or declared to be ignored when invoked as 'erlc -v foobar.yrl'.
> On Mar 31, 2010, at 1:53 PM, Tuncer Ayaz wrote:
>
>> On Wed, Mar 31, 2010 at 10:28 PM, Ruslan Babayev 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.
>>
>> Warnings should be printed regardless of verbose flag.
>>
>>> Erlang ASN.1 version "1.6.13" compiling
>>> "/Users/ruslan/tmp/cdrdump/asn1/Attribute-ASN1Module.asn1"
>>> Compiler Options: [ber,report_errors,
>>> |
|
|
| Back to top |
|
| t |
Posted: Wed Mar 31, 2010 9:05 pm |
|
|
|
User
Joined: 30 Sep 2008
Posts: 133
|
On Wed, Mar 31, 2010 at 10:55 PM, Ruslan Babayev <ruslan@babayev.com> wrote:
> What would verbose flag be used for, then?
For example yecc will show warnings that are safe to ignore
or declared to be ignored when invoked as 'erlc -v foobar.yrl'.
> On Mar 31, 2010, at 1:53 PM, Tuncer Ayaz wrote:
>
>> On Wed, Mar 31, 2010 at 10:28 PM, Ruslan Babayev 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.
>>
>> Warnings should be printed regardless of verbose flag.
>>
>>> Erlang ASN.1 version "1.6.13" compiling
>>> "/Users/ruslan/tmp/cdrdump/asn1/Attribute-ASN1Module.asn1"
>>> Compiler Options: [ber,report_errors,
>>> |
|
|
| Back to top |
|
| Guest |
Posted: Thu Apr 08, 2010 12:03 pm |
|
|
|
Guest
|
On Wed, Mar 31, 2010 at 10:55 PM, Ruslan Babayev <ruslan@babayev.com> wrote:
> What would verbose flag be used for, then?
>
The verbose flag should be used for turning on any extra
output that can be useful for debugging (of either the compiler
itself or the source code that is being compiled).
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Thu Apr 08, 2010 12:03 pm |
|
|
|
Guest
|
On Wed, Mar 31, 2010 at 10:55 PM, Ruslan Babayev <ruslan@babayev.com> wrote:
> What would verbose flag be used for, then?
>
The verbose flag should be used for turning on any extra
output that can be useful for debugging (of either the compiler
itself or the source code that is being compiled).
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|