![]() |
Weird problem with strings / arrays (*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: Weird problem with strings / arrays (*solved*) (/showthread.php?tid=586) Pages:
1
2
|
Weird problem with strings / arrays (*solved*) - Mousey - 03-10-2014 Hopefully my example listing makes it clear! Code: ' using version 1.4.0s1864 Re: Weird problem with strings / arrays - boriel - 04-20-2014 Just arrived from Barcelona (for easters). :roll: This is a *NASTY* severe bug :!: I'm going to fix it ASAP, and tell you when it's fixed. Sorry. UPDATE: Fixed! As always, it turns out to be a single line of code. Please, download and check Version 1.4.0-r1869. This bug *ALSO EXIST* in previous version ZX Basic 1.3.x :!: Re: Weird problem with strings / arrays - Mousey - 04-25-2014 Thanks for looking at this bug, but unfortunately it still crashes with the "Out of Memory" error (when compiled with --debug-memory). Also, with this new version, when I compile to TZX, it now generates 3 Python files:
Re: Weird problem with strings / arrays - boriel - 04-25-2014 Mousey Wrote:Thanks for looking at this bug, but unfortunately it still crashes with the "Out of Memory" error (when compiled with --debug-memory). ![]() It should generate those .py files. The previous version did not, because I already packaged them. Please, go into the zxb.py directory (BTW you are using the .py version, aren't you?), and execute zxb.py --version ONCE. Leave the generated .py files there, as it will speed up the compiler a lot. Note: This fix should (at least) correct the Array(i) = TextString. So the assignation is correctly done. Re: Weird problem with strings / arrays - boriel - 05-05-2014 [quote="boriel"][quote="Mousey"]Thanks for looking at this bug, but unfortunately it still crashes with the "Out of Memory" error (when compiled with --debug-memory). Please tell me which version are you using (zxb --version) To me it all works ok. It should read zxb.py 1.4.0-s1869 Re: Weird problem with strings / arrays - Mousey - 05-06-2014 boriel Wrote:Please tell me which version are you using (zxb --version)I have downloaded and tested with the "Development Version" located 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 --> But the zxb.py version contained in both the .zip and the tar.gz packages is stated as "1.3.0-s1771". Was the wrong version uploaded, or has the version string just not been updated? Either way, the above test program still reports "Out of Memory" when compiled with --debug-memory. I am running Python version 2.7.6, on Mac OS X 10.9, in case that helps. Re: Weird problem with strings / arrays - boriel - 06-07-2014 Mousey Wrote:Sorry for the delay (was travelling abroad!).boriel Wrote:Please tell me which version are you using (zxb --version)I have downloaded and tested with the "Development Version" located here: You were right. It was an upload from an old repo. Please, try now?? Re: Weird problem with strings / arrays - Mousey - 06-18-2014 boriel Wrote:You were right. It was an upload from an old repo. Please, try now??Hi - I have also been travelling (just spent 2 weeks in the USA!), so sorry for the delay replying. I have downloaded it again, and is now reporting the version as: zxb.py 1.4.0alpha-s1769 not zxb.py 1.4.0-s1869 as it should be! Was this alpha version uploaded in error? Also, when I try to compile with this version, it gives an error: Code: Traceback (most recent call last): Re: Weird problem with strings / arrays - boriel - 06-24-2014 Sorry for the delay. Apparently I messed up the build script for the python version. Can you check it now? Please check the version. zxb.py --version should return: zxb.py 1.4.0-s1876 Re: Weird problem with strings / arrays - Mousey - 07-01-2014 boriel Wrote:Sorry for the delay.Well, the good news is that I finally have version 1.4.0-s1876! The bad news is, it still fails to compile the example listing, with the following error: Code: Traceback (most recent call last): So, to summarise, here are the versions I have tried and the results: 1.3.0-s1771 - Out of Memory error 1.4.0s1864 - Out of Memory error 1.4.0alpha-s1769 - Fails to compile 1.4.0-s1876 - Fails to compile Re: Weird problem with strings / arrays - boriel - 07-01-2014 Mousey Wrote:So, to summarise, here are the versions I have tried and the results: Sorry, but can't reproduce your bug. I've used this version. Please, make a CLEAN installation of the compiler in a new directory and check its version number reads 1.4.0-s1876 I've compiled the listing above successfully (no bugs, no compiler error). Re: Weird problem with strings / arrays - Mousey - 07-07-2014 boriel Wrote:Sorry, but can't reproduce your bug. I've used this version.Ok, some good news and bad news. ![]() Firstly - I always install a new version to a completely fresh directory, as I know how important this is! But now onto the news: I now know what is causing the compiler to fail! I forgot to tell you (sorry!) that I compile with both the --debug-memory and also the --debug-array flag (for array boundary checking). If you try to compile with the --debug-array flag, the above test program fails with the errors I've already posted. However, if you compile with just the --debug-memory flag, it compiles fine, and also the bug is fixed! ![]() Thanks for all your work so far, it really is appreciated. Any chance the --debug-array problem could be looked into? Re: Weird problem with strings / arrays - boriel - 07-07-2014 Mousey Wrote:If you try to compile with the --debug-array flag, the above test program fails. However, if you compile with just the --debug-memory flag, it compiles file, and also the bug is fixed!Oh, thanks a lot!! :!: will check it ASAP! Re: Weird problem with strings / arrays - Mousey - 07-08-2014 boriel Wrote:Oh, thanks a lot!! :!: will check it ASAP!That's great, thanks boriel. ![]() Re: Weird problem with strings / arrays - boriel - 07-18-2014 Mousey Wrote:Try now and download the latest version 1.4.0s1881 and tell me, please. :wink:boriel Wrote:Oh, thanks a lot!! :!: will check it ASAP!That's great, thanks boriel. |