<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Thanks Facu!</p>
    <p>This is now at GitHub.</p>
    <p>Cheers,</p>
    <div class="moz-cite-prefix">On 2026-10-04 1:28 PM, Facundo Javier
      Gelatti via Cuis-dev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAC1UKnaieip7gXaxTN9ae0s670aOxH_fkpnuJ8uG_34LOwU4eg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>As <span style="font-family:monospace">MethodNode>>sourceText</span>
          uses <span style="font-family:monospace">#printString</span>,
          it can return a string with invalid syntax if the method is
          very large. I attach some example code to see this in a
          workspace (<span style="font-family:monospace"><a
              href="http://example1.workspace.st" moz-do-not-send="true">example1.workspace.st</a></span>).</div>
        <div><br>
        </div>
        <div>Note that it's not needed to have a method literally that
          large to trigger this bug.</div>
        <div>For example, I've found this when running some tests with
          the CodeCoverage package. The code of the method was not so
          long, but as the coverage tool instruments the method, it
          increased its size by a considerable amount.</div>
        <div>Another example of a short method triggering the bug can be
          found in <span style="font-family:monospace"><a
              href="http://example2.workspace.st" moz-do-not-send="true">example2.workspace.st</a></span>.</div>
        <div><br>
        </div>
        <div>The fix is to use <span style="font-family:monospace">#fullPrintString</span>
          instead of <span style="font-family:monospace">#printString</span>.
          I attach a changeset to do this.</div>
        <div><br>
        </div>
        <div>Cheers!<br>
        </div>
        <div>Facu</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis.st">www.cuis.st</a>
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich</pre>
  </body>
</html>