[prev in list] [next in list] [prev in thread] [next in thread] 

List:       olpc-etoys
Subject:    Re: [etoys-dev] broken project: cannot open Viewer on object
From:       Ricardo Moran <richi.moran () gmail ! com>
Date:       2012-11-27 15:47:03
Message-ID: CALr=5n3F7PgWr4fnvRoc5_8_T3w_E_ob3kdiO8ycGE-Pz0_A8g () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi, I've found a way of triggering a similar (maybe the same) error. The
steps to reproduce are:

1. Create a new variable named "foo".
2. Create a new script named "foo" that assigns something to the variable.
3. Add a parameter to the script.
4. Create another script named "foo" (it will be automatically renamed to
"foo1"). Make this script call the previous "foo" script.
5. Rename variable to "foo1".
6. Boom! :)

Now this is very strange, I don't know why, but after I
recompiled ModifyVariableDialogMorph>>#doAccept (without making any changes
to the code), the error just went away.

Cheers,
Richo

On Mon, Nov 26, 2012 at 4:21 PM, Markus Schlager <m.slg@gmx.de> wrote:

> Thank you, Bert. I'll try what you're proposing.
> 
> 
> On Mon, 26 Nov 2012, Bert Freudenberg wrote:
> 
> It would be interesting to know what exactly happened - seems to be an
> > unfortunate mix of textual and tile scripts with and without arguments
> > having the same name as some variables that were added / removed in a way
> > to confuse the system.
> > 
> 
> There weren't any textual scripts involved. The students are doing
> tile-scripting only. Having variables and scripts with the same names is a
> typical mistake among them.
> 
> Markus
> ______________________________**_________________
> etoys-dev mailing list
> etoys-dev@squeakland.org
> http://lists.squeakland.org/**mailman/listinfo/etoys-dev<http://lists.squeakland.org/mailman/listinfo/etoys-dev>
>  


[Attachment #5 (text/html)]

Hi, I&#39;ve found a way of triggering a similar (maybe the same) error. The steps to \
reproduce are:<div><br></div><div>1. Create a new variable named \
&quot;foo&quot;.</div><div>2. Create a new script named &quot;foo&quot; that assigns \
something to the variable.</div>

<div>3. Add a parameter to the script.</div><div>4. Create another script named \
&quot;foo&quot; (it will be automatically renamed to &quot;foo1&quot;). Make this \
script call the previous &quot;foo&quot; script.</div><div>

5. Rename variable to &quot;foo1&quot;.</div><div>6. Boom! \
:)</div><div><br></div><div>Now this is very strange, I don&#39;t know why, but after \
I recompiled ModifyVariableDialogMorph&gt;&gt;#doAccept (without making any changes \
to the code), the error just went away.</div>

<div><br></div><div>Cheers,</div><div>Richo<br><br><div class="gmail_quote">On Mon, \
Nov 26, 2012 at 4:21 PM, Markus Schlager <span dir="ltr">&lt;<a \
href="mailto:m.slg@gmx.de" target="_blank">m.slg@gmx.de</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Thank you, Bert. I&#39;ll try what you&#39;re proposing.<div \
class="im"><br> <br>
On Mon, 26 Nov 2012, Bert Freudenberg wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> It would be interesting to know what exactly happened - \
seems to be an unfortunate mix of textual and tile scripts with and without arguments \
having the same name as some variables that were added / removed in a way to confuse \
the system.<br>


</blockquote>
<br></div>
There weren&#39;t any textual scripts involved. The students are doing tile-scripting \
only. Having variables and scripts with the same names is a typical mistake among \
them.<br> <br>
Markus<br>
______________________________<u></u>_________________<br>
etoys-dev mailing list<br>
<a href="mailto:etoys-dev@squeakland.org" \
target="_blank">etoys-dev@squeakland.org</a><br> <a \
href="http://lists.squeakland.org/mailman/listinfo/etoys-dev" \
target="_blank">http://lists.squeakland.org/<u></u>mailman/listinfo/etoys-dev</a><br> \
</blockquote></div><br></div>



_______________________________________________
etoys-dev mailing list
etoys-dev@squeakland.org
http://lists.squeakland.org/mailman/listinfo/etoys-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic