IndexError: list index out of range (*solved*) - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15) +---- Thread: IndexError: list index out of range (*solved*) (/showthread.php?tid=367) |
IndexError: list index out of range (*solved*) - oblo - 08-05-2011 Hi all I'm trying to compile a piece of code but I get the following output: zxb.exe my_program.bor --org=27000 --heap-size=1024 -t -B - Traceback (most recent call last): File "zxb.py", line 312, in <module> File "zxb.py", line 246, in main File "zxbtrad.pyc", line 316, in traverse File "zxbtrad.pyc", line 1035, in traverse File "zxbtrad.pyc", line 316, in traverse File "zxbtrad.pyc", line 1040, in traverse File "zxbtrad.pyc", line 316, in traverse File "zxbtrad.pyc", line 1035, in traverse File "zxbtrad.pyc", line 316, in traverse File "zxbtrad.pyc", line 1035, in traverse File "zxbtrad.pyc", line 316, in traverse File "zxbtrad.pyc", line 1035, in traverse IndexError: list index out of range What does it means? I'm using 1.2.8s715 version Cheers Re: IndexError: list index out of range - boriel - 08-05-2011 This looks like a compiler bug. :!: Please send my your code by email, to test it. Re: IndexError: list index out of range - oblo - 08-06-2011 Sent. I'm re-checking the code with the last part I added; maybe I'll find something. Cheers Re: IndexError: list index out of range - LCD - 08-06-2011 "Traceback (most recent call last)" can be probably caused by trying to write file to the output directory which is write protected by the system (Like C: on Windows 7). Re: IndexError: list index out of range - oblo - 08-06-2011 That's the error that BorIDE gaves me but the directory is the same as always (not C:, of course) so I thought that couldn't be the problem. Then, I tried to compiled directly from command line... and that's what I found. Cheers Re: IndexError: list index out of range - boriel - 08-06-2011 Confirmed: It was a bug (now fixed). Please, download version 1.2.8s718 here: <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Archive">http://www.boriel.com/wiki/en/index.php ... IC:Archive</a><!-- m --> :roll: Re: IndexError: list index out of range (*solved*) - oblo - 08-07-2011 Glad to ear it Downloading... Cheers |