Author Topic: Line number error messages are off  (Read 2664 times)

0 Members and 1 Guest are viewing this topic.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Line number error messages are off
« on: January 12, 2021, 10:20:49 am »
The image below should show the glitch simply enough.

 [ You are not allowed to view this attachment ]  
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline luke

  • Administrator
  • Seasoned Forum Regular
  • Posts: 324
    • View Profile
Re: Line number error messages are off
« Reply #1 on: January 12, 2021, 11:23:41 pm »
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.

  [ You are not allowed to view this attachment ]  
« Last Edit: January 12, 2021, 11:25:22 pm by luke »

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Line number error messages are off
« Reply #2 on: January 12, 2021, 11:39:22 pm »
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.  [ You are not allowed to view this attachment ]  
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline luke

  • Administrator
  • Seasoned Forum Regular
  • Posts: 324
    • View Profile
Re: Line number error messages are off
« Reply #3 on: January 12, 2021, 11:45:54 pm »
Unfortunately I remain unable to reproduce this, so it'll likely stay as something for you to investigate.

Offline OldMoses

  • Seasoned Forum Regular
  • Posts: 469
    • View Profile
Re: Line number error messages are off
« Reply #4 on: January 13, 2021, 07:33:44 am »
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

 [ You are not allowed to view this attachment ]  
« Last Edit: January 13, 2021, 07:41:45 am by OldMoses »

FellippeHeitor

  • Guest
Re: Line number error messages are off
« Reply #5 on: January 13, 2021, 08:53:44 am »
  [ You are not allowed to view this attachment ]  

Error fixed in the latest development build - c0c5970.
« Last Edit: January 13, 2021, 09:11:00 am by FellippeHeitor »