Vectrex32

General Category => Feature Requests and Bug Reports => Topic started by: jaymzjulian on October 29, 2019, 02:34:13 AM

Title: Bug: "Variable is not an array" error does not display line number
Post by: jaymzjulian on October 29, 2019, 02:34:13 AM
All other errors seem to, but this one does not.... :(
Title: Re: Bug: "Variable is not an array" error does not display line number
Post by: Vectrex32 on November 06, 2019, 07:09:45 PM
It's not the error message that's missing a line number, it's the line of code itself.

Can you post an example that reproduces this?

- Bob
Title: Re: Bug: "Variable is not an array" error does not display line number
Post by: jaymzjulian on November 06, 2019, 07:22:13 PM

jaymz@RHINO:/mnt/c/Users/jaymz/vectrex32$ cat bug2.bas
foo[1] = 5
foo[2] = 5


results in


Ready

load"bug2"

Ready

run
Variable is not an array


EDIT: obviously a synthetic example, but it happened to me a few times in my actual code and took me quite a while to track down _which_ code I messed up ;)
Title: Re: Bug: "Variable is not an array" error does not display line number
Post by: Vectrex32 on November 06, 2019, 09:09:12 PM
This will be fixed in the next release (version 1.21).

- Bob
Title: Re: Bug: "Variable is not an array" error does not display line number
Post by: jaymzjulian on November 06, 2019, 09:28:28 PM
Quote from: Vectrex32 on November 06, 2019, 09:09:12 PM
This will be fixed in the next release (version 1.21).

- Bob

awesome - thank you very much!