AW: Transcript contents is empty?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

AW: Transcript contents is empty?

Frank Urbach
Hi John,

I was digging a little bit in the history of #show: of TranscriptStream. From there #endEntry. As far as I'm right after each entry the stream will be reseted. So you can't get the contents of the stream. This behavior is there since 2001. Not helping but an explanation.

Cheers,
  Frank
---
Edelstahlwerke Schmees GmbH
Geschäftsleitung Clemens Schmees
Sitz D-01796 Pirna
Handelsregister Dresden HRB 54
www.schmees.com


-----Original Message-----
From: [hidden email]
Date: Fri, 19 Oct 2007 21:26:16
To:[hidden email], [hidden email]
Subject: Transcript contents is empty?

In Sophie I was going to grab the contents of the Transcript and
write that to our error server.
However I find that

Transcript show: 'foo'.
Transcript contents size = 0 ifTrue: [self halt].

Obviously I would have *thought* that asking for Transcript contents
would have returned what is on the Transcript.
But it doesn't.

So I'm wondering if this is a bug or feature?


PS Squeak 3.10alpha #7092 but same behaviour in 3.8.1



--
========================================================================
===
John M. McIntosh <[hidden email]>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
========================================================================
===





Reply | Threaded
Open this post in threaded view
|

Re: Transcript contents is empty?

Bert Freudenberg
> From: [hidden email]
> Date: Fri, 19 Oct 2007 21:26:16
> To:[hidden email], [hidden email]
> Subject: Transcript contents is empty?
>
> In Sophie I was going to grab the contents of the Transcript and
> write that to our error server.
> However I find that
>
> Transcript show: 'foo'.
> Transcript contents size = 0 ifTrue: [self halt].
>
> Obviously I would have *thought* that asking for Transcript contents
> would have returned what is on the Transcript.
> But it doesn't.
>
> So I'm wondering if this is a bug or feature?

Feature. You need to add a dependent to Transcript and log stuff on  
"updated: #appendEntry" sends (IIRC).

- Bert -



Reply | Threaded
Open this post in threaded view
|

Re: Transcript contents is empty?

Nicolas Cellier-3
Bert Freudenberg a écrit :

>> From: [hidden email]
>> Date: Fri, 19 Oct 2007 21:26:16
>> To:[hidden email], [hidden email]
>> Subject: Transcript contents is empty?
>>
>> In Sophie I was going to grab the contents of the Transcript and
>> write that to our error server.
>> However I find that
>>
>> Transcript show: 'foo'.
>> Transcript contents size = 0 ifTrue: [self halt].
>>
>> Obviously I would have *thought* that asking for Transcript contents
>> would have returned what is on the Transcript.
>> But it doesn't.
>>
>> So I'm wondering if this is a bug or feature?
>
> Feature. You need to add a dependent to Transcript and log stuff on
> "updated: #appendEntry" sends (IIRC).
>
> - Bert -
>
>
>
>

Exactly, because Squeak Transcript is the stream of not yet appened text...

It is not the real text collector, just an intermediate...
Not a valuable object per se...

I guess john idea of Transcript is exactly the VW Transcript (a
TextCollector).


Reply | Threaded
Open this post in threaded view
|

Re: Transcript contents is empty?

Nicolas Cellier-3
nicolas cellier a écrit :

>
> Exactly, because Squeak Transcript is the stream of not yet appened text...
>
> It is not the real text collector, just an intermediate...
> Not a valuable object per se...
>
> I guess john idea of Transcript is exactly the VW Transcript (a
> TextCollector).
>
>
In other words, the object you open with world menu is not the
Transcript anymore. It is just a client of the Transcript.

Transcript must now be viewed as a TranscriptingService you'll have to
subscribe to... For that reason I would rather call it a Subscript!


Reply | Threaded
Open this post in threaded view
|

Re: Transcript contents is empty?

K. K. Subramaniam
On Saturday 20 October 2007 3:00 am, nicolas cellier wrote:
> Transcript must now be viewed as a TranscriptingService you'll have to
> subscribe to... For that reason I would rather call it a Subscript!
trans=over, scribere=writing, so the name is not too far removed from its
function. It is much closer than System Browser - a tool used to edit system
code :-).

How about Transcripter?

Subbu

Reply | Threaded
Open this post in threaded view
|

Re: Transcript contents is empty?

keith1y
subbukk wrote:

> On Saturday 20 October 2007 3:00 am, nicolas cellier wrote:
>  
>> Transcript must now be viewed as a TranscriptingService you'll have to
>> subscribe to... For that reason I would rather call it a Subscript!
>>    
> trans=over, scribere=writing, so the name is not too far removed from its
> function. It is much closer than System Browser - a tool used to edit system
> code :-).
>
> How about Transcripter?
>
> Subbu
>  
If you are trying to describe what it does, how about...

DoesntWorker

Keith