Discuss Scratch

nXIII
Scratcher
1000+ posts

Repeat and custom blocks

I've had this problem a couple of times before: for some reason, <repeat ()> blocks in custom blocks occasionally stops working. It's odd, though, because it simply skips execution rather than stopping the block. For example, this project should add “thing” and then “1” to the list each time; instead it just adds “1” (the result of the same reporter in the <repeat ()> block) to the list continuously.

nXIII · GitHub
nXIII
Scratcher
1000+ posts

Repeat and custom blocks

Bump. This is actually preventing a bunch of my (new) projects from working.

nXIII · GitHub
Hardmath123
Scratcher
1000+ posts

Repeat and custom blocks

I see it too, but there's no apparent pattern.
nXIII
Scratcher
1000+ posts

Repeat and custom blocks

I isolated the problem. If you have (in a custom block) an atomic custom block followed at some point by a <repeat ()> containing a custom block, the repeat does not evaluate its contents. Test case.

nXIII · GitHub
nXIII
Scratcher
1000+ posts

Repeat and custom blocks

Should I file a report on the tracker?

nXIII · GitHub
LS97
Scratcher
100+ posts

Repeat and custom blocks

Yeah

Retired Scratcher • Aspiring information systems engineer
nXIII
Scratcher
1000+ posts

Repeat and custom blocks

#229

nXIII · GitHub
Lightnin
Scratcher
1000+ posts

Repeat and custom blocks

Thanks! Nice job isolating it - not a trivial one to nail down I'd imagine.
nXIII
Scratcher
1000+ posts

Repeat and custom blocks

roijac
BTW, just found out broadcasts also don't work, could you add that to the bug description?
EDIT2: That's a different bug.

Last edited by nXIII (Dec. 19, 2012 11:41:12)


nXIII · GitHub

Powered by DjangoBB