<div dir="ltr"><div>Hi Hernan,</div><div>I did it by selecting the variable name in the browser editor and then cmd+R. I had two instance variables, I tried to rename one and it renamed the other one, then I tried to rename it back and again renamed the wrong one, then I fixed it manually. But I can't reproduce it now. I'll try to use cmd-R more often and I'll let you know if it happens again.</div><div><br></div><div>Thanks!</div><div>Luciano<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 31, 2019 at 2:11 PM Hernan Wilkinson <<a href="mailto:hernan.wilkinson@10pines.com">hernan.wilkinson@10pines.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"><div dir="ltr">Hi Luciano,<div> could you tell me how you tried to rename the instance variable? It is working correctly for me... maybe you are assuming something from the UI point of view that is not correct...</div><div> There are two ways to rename an inst var:</div><div>1) Right click on the selected class in the browser and select "Refactorings" and then "Rename inst. var...". If you do this it will ask you the inst var to rename</div><div>2) In the browser editor put the cursor in an inst var and press cmd+R, it should rename that inst var with the new name</div><div><br></div><div>Let me know how you are doing it to see what the problem is</div><div><br></div><div>Hernan.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 31, 2019 at 12:44 AM Luciano Notarfrancesco via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st" target="_blank">cuis-dev@lists.cuis.st</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"><div dir="ltr"><div>If the compilation of a selection fails in a workspace or a browser or any SmalltalkEditor when doing doIt/printIt/etc, the error message is inserted relative to the start of the whole text, not relative to the start of the selection.</div><div><br></div><div>Didn't look much into it yet, and I'm not sure what's the best way to fix it. The problem is that the compiler calls SmalltalkEditor>>notify:at:in: and here you don't know if the error comes from saving a method in a browser (in this case it should be inserted relative to the start of the whole text) or from a doIt (relative to the start of the selection).</div><div><br></div><div>Two other bugs I saw and still didn't spend time trying to fix them:</div><div>- sometimes the selected text in the debugger is wrong, it doesn't mark the position of the instruction pointer correctly;</div><div>- I tried the refactoring to rename instance variables and it renamed the wrong variable, not the one selected.</div></div>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_3210086674514846516gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span><span style="font-size:small"><font size="2"><span style="font-weight:normal"><span style="font-weight:bold">Hernán Wilkinson</span><br>Agile Software Development, Teaching & Coaching</span></font></span></span></span></strong></span></div><div><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span><span style="font-size:small"><font size="2"><span style="font-weight:normal">Phone: +54-011</span></font></span></span></span></strong></span><font size="2" face="tahoma, sans-serif">-4893-2057</font></div><div><strong style="font-family:tahoma,sans-serif;font-size:xx-small"><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">Twitter: @HernanWilkinson</span></font></span></span></strong></div><div><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span><span style="font-size:small"><font size="2"><span style="font-weight:normal">site: <a href="http://www.10pines.com/" style="color:rgb(17,65,112)" target="_blank">http://www.10Pines.com</a></span></font></span></span></span></strong></span></div><div><font face="tahoma, sans-serif"><span style="border-collapse:collapse">Address: Alem 896</span></font>, Floor 6, Buenos Aires, Argentina</div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div>