Bugs & Things - ESP Basic 3.0 Alpha 12 with Snazzy Editor
Posted: Sat Jul 16, 2016 4:59 pm
Bugs: snazzy editor, etc.
A great start.
1. Long lines don't wrap.
2. Can't indent using spaces. Tabs don't always work.
3. Cant control formatting of 2 nested if statements in new snazzy editor. I end up "fighting the editor" and cannot get program looking the way I want.
Would really like a magic .gz file option that would be smaller, faster and would just
give line numbers (& possibly, colors if overhead is low), but no formatting.
4. Long lines wider than the screen window, if they are comments, can sometimes come back into the editor from the File Manager wrapped to fit the screen, but the second wrapped line is no longer commented out and generates an error.
5. Get “comparison between string and number” error but it doesn’t say on which line the error was found.
6. Get "Error Failed to reach end of input expression, likely malformed input" – Needs Line Number of error
7. When trying to SAVE, sometimes get Exception 29 and system reboots.
Exception (29):
epc1=0x4000c118 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
ctx: cont
sp: 3fff2b10 end: 3fff2f50 offset: 01a0
(If useful, when these exceptions occur, entire stack/dump could be attached.)
8. When the system tries to re-write the browser screen , sometimes get Exception 28:
Exception (28):
epc1=0x4000bf0e epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
ctx: cont
sp: 3fff27b0 end: 3fff2f50 offset: 01a0
9. Got Error, “Could not look up value for variable” – Needs Line Number of error line
10. Using a meter as in the demo, but in a larger program, it works sporadically. Even though the winsock connects (as shown by debug info from serial port 1), and the value increments, most of the time (in my program) the meter does not show the value.
(I now keep my Termite terminal plugged into the USB port of my nodemcu, 9600 baud, which displays valuable debugging and status information generated automatically by BASIC.)
My biggest problem by far is that wprint / html do not work most of the time, so I can't insert html into the program. It would be great if, along with the ability to insert CSS files and JS files, I also had the ability to insert HTML files (instead of using a bunch of concatenated wprint statements). This would allow a great deal of wonderful and simple customization of my BASIC program!
Also, since I seem to see many "comparison between string and number" errors, and it seems that the automatic typing is not always correct, or at least confusing, why not follow traditional BASIC and simply say that any variable ending in '$' is a STRING? This would make it easier for the programmer to identify variable types just by looking at the names.
Documentation bug: The documentation says that spaces are optional, but at the moment, they are not optional and must be considered carefully in all statements.
Is there a way for us in the peanut gallery to contribute to the documentation?
A great start.
1. Long lines don't wrap.
2. Can't indent using spaces. Tabs don't always work.
3. Cant control formatting of 2 nested if statements in new snazzy editor. I end up "fighting the editor" and cannot get program looking the way I want.
Would really like a magic .gz file option that would be smaller, faster and would just
give line numbers (& possibly, colors if overhead is low), but no formatting.
4. Long lines wider than the screen window, if they are comments, can sometimes come back into the editor from the File Manager wrapped to fit the screen, but the second wrapped line is no longer commented out and generates an error.
5. Get “comparison between string and number” error but it doesn’t say on which line the error was found.
6. Get "Error Failed to reach end of input expression, likely malformed input" – Needs Line Number of error
7. When trying to SAVE, sometimes get Exception 29 and system reboots.
Exception (29):
epc1=0x4000c118 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
ctx: cont
sp: 3fff2b10 end: 3fff2f50 offset: 01a0
(If useful, when these exceptions occur, entire stack/dump could be attached.)
8. When the system tries to re-write the browser screen , sometimes get Exception 28:
Exception (28):
epc1=0x4000bf0e epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
ctx: cont
sp: 3fff27b0 end: 3fff2f50 offset: 01a0
9. Got Error, “Could not look up value for variable” – Needs Line Number of error line
10. Using a meter as in the demo, but in a larger program, it works sporadically. Even though the winsock connects (as shown by debug info from serial port 1), and the value increments, most of the time (in my program) the meter does not show the value.
(I now keep my Termite terminal plugged into the USB port of my nodemcu, 9600 baud, which displays valuable debugging and status information generated automatically by BASIC.)
My biggest problem by far is that wprint / html do not work most of the time, so I can't insert html into the program. It would be great if, along with the ability to insert CSS files and JS files, I also had the ability to insert HTML files (instead of using a bunch of concatenated wprint statements). This would allow a great deal of wonderful and simple customization of my BASIC program!
Also, since I seem to see many "comparison between string and number" errors, and it seems that the automatic typing is not always correct, or at least confusing, why not follow traditional BASIC and simply say that any variable ending in '$' is a STRING? This would make it easier for the programmer to identify variable types just by looking at the names.
Documentation bug: The documentation says that spaces are optional, but at the moment, they are not optional and must be considered carefully in all statements.
Is there a way for us in the peanut gallery to contribute to the documentation?