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 ======================================================================== === |
> 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 - |
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). |
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). > > 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! |
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 |
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 > DoesntWorker Keith |
Free forum by Nabble | Edit this page |