QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: SMcNeill on January 12, 2021, 10:20:49 am
-
The image below should show the glitch simply enough.
[ This attachment cannot be displayed inline in 'Print Page' view ]
-
I am unable to reproduce this with a build of the latest development (5d735e1), see screenshot below. Please advise what version you are using and if any special steps are required to produce the behaviour.
[ This attachment cannot be displayed inline in 'Print Page' view ]
-
I just refreshed my version of the repo this morning, and can still reproduce the glitch. All I have to do is take END SUB off any sub, and I *always* get an error on LINE 9. [ This attachment cannot be displayed inline in 'Print Page' view ]
-
Unfortunately I remain unable to reproduce this, so it'll likely stay as something for you to investigate.
-
I get something similar, only it's not line 9. It's line 293, but I only wrote two lines of do nothing code on lines 4 & 5.
So I click where it tells me to click and I jump to line 293. But wait! I didn't write more than two lines of code and now there are almost 300 blank lines after the code I wrote. They weren't there before. I cut out those blank lines and they're gone, but click on the error message again and they come back. Perhaps that's a function of normal jumping behaviour in an abnormal error message situation.
Putting the END SUB back on my indolent example SUB eliminates the error message, though the blank lines remain until removed.
This is with 5a300c7
EDIT: Further investigation with multiple SUB programs shows the goto line at any subsequent SUB/FUNCTION. A single SUB program seems to confuse the IDE
[ This attachment cannot be displayed inline in 'Print Page' view ]
-
[ This attachment cannot be displayed inline in 'Print Page' view ]
Error fixed in the latest development build - c0c5970.