<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 5, 2022 at 1:17 PM Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-size:small">Some background that may help in diagnosis...<br></div><div style="font-size:small"><br></div><div style="font-size:small">This finds all assignments toi Transcript, either directly "Transcript := expr" or via Smalltalk at: #Transcript put: expr.</div><div style="font-size:small"><br></div><div style="font-size:small">Add to ParseNode:</div><div style="font-size:small">anySatisfy: aBlock<br>    self nodesDo: [:n| (aBlock value: n) ifTrue: [^true]].<br>    ^false<br></div><div style="font-size:small"><br></div><div style="font-size:small">then</div><div style="font-size:small"><br></div><div style="font-size:small">| tb sb |<br>sb := Smalltalk bindingOf: #Smalltalk.<br>tb := Smalltalk bindingOf: #Transcript.<br>self sn browseAllSelect:<br>    [:m|<br>    ((m hasLiteral: tb) and: [m methodNode anySatisfy: [:n| n isAssignmentNode and: [n variable key == tb]]])<br>    or: [(m hasLiteral: #Transcript) and: [m methodNode anySatisfy:</div><div style="font-size:small">[:n| n isMessageNode and: [n selector key == #at:put: and: [n receiver ifNil: [false] ifNotNil: [:r| r isVariableNode and: [r key == sb and: [n arguments first isLiteralNode and: [n arguments first key == #Transcript]]]]]]]]]]<br></div></div></blockquote><div><br></div><div class="gmail_default" style="font-size:small">Ugh.  Did not mean to send yet.  Anyway...</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">That shows that a project's transcript is installed in Project newState:, which assigns the project's transcript via TranscriptStream class>>#newTranscript:. That implies that all normal transcripts are unique to a project and have just one dependent (see TranscriptStream>>#open).</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">So the first thing to check is are all projects in your image holding onto unique transcripts.  e.g. im my image</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">{Project allSubInstances size. (IdentitySet withAll: (Project allSubInstances collect: #transcript)) size} #(5 5) <br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">HTH</div><div class="gmail_default" style="font-size:small"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-size:small"></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 5, 2022 at 11:13 AM karl ramberg <<a href="mailto:karlramberg@gmail.com" target="_blank">karlramberg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 5, 2022 at 2:44 PM Thiede, Christoph <<a href="mailto:Christoph.Thiede@student.hpi.uni-potsdam.de" target="_blank">Christoph.Thiede@student.hpi.uni-potsdam.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">



<div>

<div id="m_-7419016027195012407m_8511060371975021521m_-6260989138383712908divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>I could not reproduce the issue on Windows with a <span>22104 image and the <span>202206021410 VM. Could you inspect <span>Project current transcript identityHash and the transcript window's model identity hash for both projects and compare the results?</span></span></span></p></div></div></blockquote><div>I did this test in a fresh image.</div><div><br></div><div>Transcript works in the Home project.<br></div><div>In the new project theTranscript got the title "Transcript #2" and does not respond.<br></div><div><br></div><div>The two Transcripts in Home project and the new project have different identityHash: 2484433 and 3994991</div><div><br></div><div>I opened another project in the same image and the fault was gone.</div><div><br></div><div> </div><div>C:\Users\Karl\Downloads\TranscriptBug\Squeak6.1alpha-22300-64bit-202206021410-Windows-x64\Squeak.exe<br>Open Smalltalk Cog[Spur] VM [CoInterpreterPrimitives VMMaker.oscog-dtl.3185]<br>Win32 built on Jun  2 2022 15:29:44 Compiler: Clang 14.0.3<br>platform sources revision VM: 202206021410 runneradmin@fv-az455-257:/d/a/opensmalltalk-vm/opensmalltalk-vm Date: Thu Jun 2 16:10:44 2022 CommitHash: c9fd365 Plugins: 202206021410 runneradmin@fv-az455-257:/d/a/opensmalltalk-vm/opensmalltalk-vm<br>CoInterpreter VMMaker.oscog-dtl.3185 uuid: 0e7f07b8-eed6-4362-b223-86c98594ddb9 Jun  2 2022<br>StackToRegisterMappingCogit VMMaker.oscog-mt.3179 uuid: c6fbcb07-2a19-ed4f-8b40-9c119a70882a Jun  2 2022</div><div><br></div><div> Best,</div><div>Karl</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div id="m_-7419016027195012407m_8511060371975021521m_-6260989138383712908divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p><span><span><span><br>
</span></span></span></p>
<p><span><span><span>Best,</span></span></span></p>
<p><span><span><span>Christoph</span></span></span></p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-7419016027195012407m_8511060371975021521m_-6260989138383712908divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Von:</b> Squeak-dev <<a href="mailto:squeak-dev-bounces@lists.squeakfoundation.org" target="_blank">squeak-dev-bounces@lists.squeakfoundation.org</a>> im Auftrag von karl ramberg <<a href="mailto:karlramberg@gmail.com" target="_blank">karlramberg@gmail.com</a>><br>
<b>Gesendet:</b> Montag, 5. Dezember 2022 13:01:15<br>
<b>An:</b> Bruce O'Neel<br>
<b>Cc:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] Transcript not working in Morphic projects ?</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Dec 5, 2022 at 10:18 AM Bruce O'Neel <<a href="mailto:bruce.oneel@pckswarms.ch" target="_blank">bruce.oneel@pckswarms.ch</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div>Hi,<br>
</div>
<div><br>
</div>
<div>MacOS x86-64, Squeak 6.0 as shipped with image 22104 - fresh install with nothing else Squeak related on the system.<br>
</div>
<div><br>
</div>
<div>Start a new image<br>
</div>
<div>Open Transcript<br>
</div>
<div>Open Workspace<br>
</div>
<div>In the workspace type:  Transcript show: 'hello 1'.<br>
</div>
<div>Shows in Transcript<br>
</div>
<div><br>
</div>
<div>Next Create a Morphic project<br>
</div>
<div>Open it<br>
</div>
<div>Open Transcript<br>
</div>
<div>Open Workspace<br>
</div>
<div>In the workspace type: Transcript show: 'hello 2'.<br>
</div>
<div>Nothing shows.<br>
</div>
</blockquote>
<div><br>
</div>
<div>Yes, I saw the same. Glad you could confirm my sanity :-D</div>
<div> <br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div></div>
<div><br>
</div>
<div>Return to Previous Project<br>
</div>
<div><br>
</div>
<div>Create a MVC project<br>
</div>
<div>Open it<br>
</div>
<div>Open Transcript<br>
</div>
<div>Open Workspace<br>
</div>
<div>In the workspace type: Transcript show: 'hello 3'<br>
</div>
<div>Shows in Transcript.<br>
</div>
<div><br>
</div>
<div>Now if I do the same thing in Squeak 6.1 22297, downloading just the images/changes/sources, again on MacOS X x86-64 then it works fine.<br>
</div>
<div><br>
</div>
<div>And now, very interestingly, if I return to the as downloaded MacOS X Squeak 6.0 22104 the problem has gone away.<br>
</div>
</blockquote>
<div> <br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div></div>
<div><br>
</div>
<div>So I am running the same VM in both cases, but clearly 2 different images.  One in the Downloaded app directory and then one separately downloaded.<br>
</div>
<div><br>
</div>
<div>Now...  If I remove all trace of Squeak from the system, re-install Squeak 6.0 22104 from the dmg, the problem comes back with Squeak 6.0 update 22104,<br>
</div>
<div><br>
</div>
<div>But downloading and running just the Squeak 6.1 images/changes .zip, unzipping it, running the above commands make the same set of commands run correctly in Squeak 6.0 22104.<br>
</div>
<div><br>
</div>
<div>I don't see anything changing in the Squeak app directory.    A find looking for recently modified files under Library/Saved Application/Sate/org.squeak.squeak6.0-64bit.savedState and I can't see how this is changing things.<br>
</div>
<div><br>
</div>
<div>On Windows this works fine with Squeak 6.0 22104.  Ditto x86-64 Linux</div>
<div><br>
</div>
<div>Karl - Are you running on MacOS?<br>
</div>
</blockquote>
<div><br>
</div>
<div>No, all testing I did was on Windows 10 and 11.</div>
<div>It's a very peculiar issue. <br>
</div>
<div><br>
</div>
<div>Best,</div>
<div>Karl<br>
</div>
<div> <br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div></div>
<div><br>
</div>
<div>cheers<br>
</div>
<div><br>
</div>
<div>bruce</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>On 2022-12-05T07:21:36.000+01:00, karl ramberg <<a href="mailto:karlramberg@gmail.com" target="_blank">karlramberg@gmail.com</a>> wrote:<br>
</div>
<blockquote>
<div>
<div dir="ltr">
<div dir="ltr"><br>
</div>
<div><br>
</div>
<div>
<div dir="ltr">On Mon, Dec 5, 2022 at 12:33 AM tim Rowledge <<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div><br>
</div>
<div><br>
</div>
<div>> On 2022-12-04, at 1:51 PM, karl ramberg <<a href="mailto:karlramberg@gmail.com" target="_blank">karlramberg@gmail.com</a>> wrote:<br>
</div>
<div>> <br>
</div>
<div>> Hm,<br>
</div>
<div>> I got the same issue with a fresh downloaded Trunk image.<br>
</div>
<div>> No text is displayed in the Transcript<br>
</div>
<div>> <br>
</div>
<div>> To reproduce:<br>
</div>
<div>> -Make a new Morphic Project<br>
</div>
<div>> -Enter project and open a Workspace and Transcript<br>
</div>
<div>> -See if the Transcript responds.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>This is very odd; it works perfectly well in my 22114 update image (Pi 64bit as usual). Not sure the new project should default to having flap/tabs though.<br>
</div>
<div><br>
</div>
<div>Just in case I tried it in both possible orders<br>
</div>
<div>- create transcript then workspace<br>
</div>
<div>- create workspace and then transcript<br>
</div>
<div>in case it was something to do with binding the morph to the name.<br>
</div>
<div><br>
</div>
</blockquote>
<div> <br>
</div>
<div>I'm mystified.<br>
</div>
<div>I got his error several times.<br>
</div>
<div>Now I can't reprodroduce it.<br>
</div>
<div><br>
</div>
<div>Best,<br>
</div>
<div>Karl<br>
</div>
<div><br>
</div>
</div>
</div>
<div>
<hr>
<br>
</div>
</div>
</blockquote>
</div>
<div><br>
</div>
</blockquote>
</div>
</div>
</div>
</div>

<br>
</blockquote></div></div>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div></div>