 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
This is not a major issue, but I figured I'd bring it to attention.
In v3.7, beta 29, a scene file containing only the following statement
will not write to the message window:
#debug "My Debug Text"
Adding "\n" to the end of the statement, or adding a #debug "\n"
statement to the end of the scene file will cause the line to be written
to the message window.
It seems that a final "\n" at the end of the scene file was implied in
version 3.6, but not in the current beta.
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Thomas de Groot
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 13 Dec 2008 05:11:36
Message: <49438a58$1@news.povray.org>
|
|
 |
|  |
|  |
|
 |
"Kyle" <no### [at] spam ok> schreef in bericht news:494272b8@news.povray.org...
>
> It seems that a final "\n" at the end of the scene file was implied in
> version 3.6, but not in the current beta.
I experience the same in 3.6. Without "\n" the line is only written when the
next #debug is met.
Thomas
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Thomas de Groot wrote:
> I experience the same in 3.6. Without "\n" the line is only written when the
> next #debug is met.
That's odd. Just to be clear, when I render a file containing only the
following line in version 3.6 ...
#debug "My Debug Text"
... the text is written to the message window, right after the "Peak
memory used" message. The text is not written to the message window in
version 3.7, beta 29.
So, you're saying that you do not see the text in the message window in
version 3.6? What is the exact version that you are using? Perhaps
it's different from mine. I'm testing on version 3.6.1a.icl8.win32.
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Thomas de Groot
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 16 Dec 2008 03:09:45
Message: <49476249$1@news.povray.org>
|
|
 |
|  |
|  |
|
 |
"Kyle" <no### [at] spam ok> schreef in bericht news:49465f27$1@news.povray.org...
>
> So, you're saying that you do not see the text in the message window in
> version 3.6? What is the exact version that you are using? Perhaps it's
> different from mine. I'm testing on version 3.6.1a.icl8.win32.
The latest version available: 3.6.1c for Windows.
Thomas
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Thomas de Groot wrote:
> "Kyle" <no### [at] spam ok> schreef in bericht news:49465f27$1@news.povray.org...
>> So, you're saying that you do not see the text in the message window in
>> version 3.6? What is the exact version that you are using? Perhaps it's
>> different from mine. I'm testing on version 3.6.1a.icl8.win32.
>
> The latest version available: 3.6.1c for Windows.
>
> Thomas
>
>
I just installed version 3.6.1c, and the result is the same as in
version 3.6.1a, the text shows up right after the "Peak memory used"
message.
Just to reiterate, this is not the case in version 3.7, beta 29.
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Thomas de Groot
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 16 Dec 2008 10:42:46
Message: <4947cc76@news.povray.org>
|
|
 |
|  |
|  |
|
 |
"Kyle" <no### [at] spam ok> schreef in bericht news:4947ae46$1@news.povray.org...
>
> I just installed version 3.6.1c, and the result is the same as in version
> 3.6.1a, the text shows up right after the "Peak memory used" message.
>
> Just to reiterate, this is not the case in version 3.7, beta 29.
Ah! ok! I just have been blind to the "Peak memory used" note from your
post. Obviously I have been thinking of something else :-)
The point is that I use the #debug statement quite a lot in my scenes to
check the parsing procedure or the output of some parameters during testing.
As such, I need the message to be written right away, and I had not noticed
the writing of it at thre end of the render. Sorry for the confusion.
Thomas
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Nicolas Alvarez
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 16 Dec 2008 17:07:49
Message: <494826b5@news.povray.org>
|
|
 |
|  |
|  |
|
 |
Thomas de Groot wrote:
> The point is that I use the #debug statement quite a lot in my scenes to
> check the parsing procedure or the output of some parameters during
> testing. As such, I need the message to be written right away, and I had
> not noticed the writing of it at thre end of the render. Sorry for the
> confusion.
Just make sure you print a newline at the end.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
It should be easy enough for POV to output a final newline at the end of
all messages just to clean up things like this.
...Ben Chambers
www.pacificwebguy.com
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Thorsten Froehlich
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 17 Dec 2008 03:40:13
Message: <4948baed@news.povray.org>
|
|
 |
|  |
|  |
|
 |
Chambers wrote:
> It should be easy enough for POV to output a final newline at the end of
> all messages just to clean up things like this.
Except that you frequently do not want automatic newlines: They prevent
assembly of longer outputs using multiple debug statements.
Thorsten
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Thomas de Groot
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 17 Dec 2008 04:03:44
Message: <4948c070$1@news.povray.org>
|
|
 |
|  |
|  |
|
 |
"Nicolas Alvarez" <nic### [at] gmail com> schreef in bericht
news:494826b5@news.povray.org...
> Thomas de Groot wrote:
>> The point is that I use the #debug statement quite a lot in my scenes to
>> check the parsing procedure or the output of some parameters during
>> testing. As such, I need the message to be written right away, and I had
>> not noticed the writing of it at thre end of the render. Sorry for the
>> confusion.
>
> Just make sure you print a newline at the end.
Yes, that is exactly what I found out. I came across the problem when I
wanted to show a message about the start and then the end of a particular
parsing block, and both written on the same line. But both messages only
appeared together at the end of the block.
Thomas
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I'd suggest simply outputting whatever remains in the #debug message
buffer upon completion of the scene. Doing so would match the
functionality that's in version 3.6.
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Thorsten Froehlich
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 17 Dec 2008 14:41:36
Message: <494955f0$1@news.povray.org>
|
|
 |
|  |
|  |
|
 |
Kyle wrote:
> I'd suggest simply outputting whatever remains in the #debug message
> buffer upon completion of the scene. Doing so would match the
> functionality that's in version 3.6.
That is already what 3.7 is supposed to do. I was not making the point that
the 3.7 behavior is intentional, just that a change to always output a
newline automatically is not desirable.
Thorsten
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> -----Original Message-----
> From: Thorsten Froehlich [mailto:tho### [at] trf de]
> Chambers wrote:
> > It should be easy enough for POV to output a final newline at the
end
> of
> > all messages just to clean up things like this.
>
> Except that you frequently do not want automatic newlines: They
prevent
> assembly of longer outputs using multiple debug statements.
Read my message again:
"a final newline at the end of all messages"
If it makes it any clearer, you can say "a newline after all output
streams have been printed." Or, to put it another way, after parsing
you flush the output stream buffers and then print a newline.
...Ben Chambers
www.pacificwebguy.com
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Nicolas Calimet
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 19 Dec 2008 05:42:20
Message: <494b7a8c$1@news.povray.org>
|
|
 |
|  |
|  |
|
 |
> Or, to put it another way, after parsing
> you flush the output stream buffers and then print a newline.
Yes, in case this is not yet the intended behavior in 3.7, I'd support
the idea that the debug buffer be forcefully flushed before the render starts
and not only at the end of the povray run.
- NC
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Chris Cason
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 3 Jan 2009 05:50:16
Message: <495f42e8@news.povray.org>
|
|
 |
|  |
|  |
|
 |
Kyle wrote:
> I'd suggest simply outputting whatever remains in the #debug message
> buffer upon completion of the scene. Doing so would match the
> functionality that's in version 3.6.
Anyone have time to contribute a patch to do this?
-- Chris
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |