tjvr / kurt

Python library for reading/writing MIT's Scratch file format.
https://kurt.tjvr.org
GNU General Public License v3.0
86 stars 24 forks source link

Problem getting length of list #25

Closed Gerhman closed 7 years ago

Gerhman commented 10 years ago

I am finding it impossible to write a parseable script that utilizes the length of a list. If I stringify an example I get "length of Randomlist". If I try to parse this though then I get an error claiming that Randomlist is an unknown block. If I put () around the name then it parses but it then uses string length measurer instead of the list one and this does not work.

tjvr commented 10 years ago

Did you define the list first?

Gerhman commented 10 years ago

@blob8108 what do you mean? I am obviously just referring to a piece of code in a larger program and the rest works perfectly fine. I also add the list to the project before parsing the script.

tjvr commented 10 years ago

I also add the list to the project before parsing the script.

Right, that's what I was asking. Let me take a look...

Gerhman commented 10 years ago

@blob8108 thanks, I'm thinking that maybe there's just some problem with the ambiguous definition...

tjvr commented 10 years ago

Probably. (It used to work, though!)

Gerhman commented 10 years ago

@blob8108 but is there anything that you can do about it?

tjvr commented 10 years ago

As I said, it used to work. I'll have a look at the code :)

Gerhman commented 10 years ago

@blob8108 Thanks, I appreciate it!

Gerhman commented 9 years ago

@blob8108 Have you found anything yet? If you tell we where I should look then I can try to fix this myself, I just don't want to read through all the source to try and figure out how it works...

Gerhman commented 9 years ago

@blob8108 After putting the name of the list inside [ ] I have managed to get it to recognize it as a list but when it makes the blocks it now makes one that checks it as if it is a string. Putting "list" before the name of the list merely adds "list" to the string.

tjvr commented 7 years ago

Closing in favour of tosh