<div dir="ltr"><div>Thanks, David! That kind of defect is annoying. However, I'm not sure I really want the "messenger" suddenly printing very long reports. I will fix how the connector class list is created, instead.</div><div>I've created bugu #50982 for this error. Hopefully it will be in the next GBS release.</div><div><br></div><div>In case you want to know, there are two major variants of #evaluate:* and #execute:* methods. One simply evaluates a string; the second also evaluates a String, but the string holds a block which can accept arguments. The latter variant is ideal for this kind of work and is much preferred over constructing a string to execute/evaluate.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 29, 2024 at 11:48 AM David Shaffer via GemStone-Smalltalk <<a href="mailto:gemstone-smalltalk@lists.gemtalksystems.com">gemstone-smalltalk@lists.gemtalksystems.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Just started using VW9.4 and GBS 8.7.1 and ran into the following bug:<br>
<br>
CstSession>>fetchBehaviorDelegatesForClassConnectors:<br>
<br>
builds a string by passing the connectors list to CstMessageDispatcher>>print:with:. Ultimately this results in sending Array>>printOn: which truncates large arrays after printing 5000 characters adding ‘…etc…’ which causes GemStone compilation errors. The patch is to simply add the following method:<br>
<br>
Array>>cstArgumentPrintOn: aStream <br>
"Append to the argument, aStream, the elements of the Array <br>
enclosed by parentheses, without truncation."<br>
<br>
aStream nextPutAll: '#('.<br>
self do: [:element | <br>
<br>
element printOn: aStream]<br>
separatedBy: [aStream space].<br>
aStream nextPut: $)<br>
<br>
Note that his bug could have existed before 8.7.1 because I feel like this is at least the second time I’ve patched it (sorry for not reporting earlier!).<br>
<br>
Best,<br>
<br>
David<br>
_______________________________________________<br>
GemStone-Smalltalk mailing list<br>
<a href="mailto:GemStone-Smalltalk@lists.gemtalksystems.com" target="_blank">GemStone-Smalltalk@lists.gemtalksystems.com</a><br>
<a href="https://lists.gemtalksystems.com/mailman/listinfo/gemstone-smalltalk" rel="noreferrer" target="_blank">https://lists.gemtalksystems.com/mailman/listinfo/gemstone-smalltalk</a><br>
</blockquote></div>