remy / vscode-nextbasic

VS Code tools for NextBASIC
https://marketplace.visualstudio.com/items?itemName=remysharp.nextbasic
8 stars 2 forks source link

Issue with Integer Variable in 1.4.5 #23

Closed Andy1966uk closed 4 years ago

Andy1966uk commented 4 years ago

Hi Remy,

Just upgrade to 1.4.5 , and my code is showing errors..

eg. %x=255 where integer variable are declared, the % is highlighted as an error. Where ever I declare an integer variable shows the error... " Integer expression should be the start of an argument, "%" "
On their own lines it's ok, but I have them all over as required by my code. Ran ok Yesterday and on Real HW... thx

Another use case...

IF Walk=1 THEN IF %x <= 42 THEN IF View=1 THEN MapSection=MapSection-1: %x=255 :r=r-262: PROC MapDetection()

This was ok in previous build. thx

remy commented 4 years ago

Is the whole line that (besides the line number - or not if you have autoline turned on)?

On Fri, 17 Jul 2020, 07:58 Andy1966uk, notifications@github.com wrote:

Hi Remy,

Just upgrade to 1.4.5 , and my code is showing errors..

eg. %x=255 where integer variable are declared, the % is highlighted as an error. Where ever I declare an integer variable shows the error...

This was ok in previous build. thx

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/remy/vscode-nextbasic/issues/23, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADLBEWMSHOLMBN2PFN7BTR37ZAZANCNFSM4O5V2TMQ .

Andy1966uk commented 4 years ago

Not using autoline at all...

Where ever in my code where I declare the integer variable is the issue, unless it's at the start of a line.... previous version was ok...

Andy1966uk commented 4 years ago

the error just highlight the % as the error... will drop an image in FB messenger for you...

remy commented 4 years ago

This is what I'm seeing… this is… unexpected.

Screenshot 2020-07-17 at 08 18 18
Andy1966uk commented 4 years ago

not using autoline, just posted two images in FB messenger, not sure how to post image here

remy commented 4 years ago

Able to replicate, it's only after a separator:

30 PRINT "ok":%x=255
remy commented 4 years ago

(posting images here - drag and drop into the edit area :) but it's cool - I've got the bug now)

Andy1966uk commented 4 years ago

at start of line it's on i.e
%r=255 , but when used in between : the error shows..... was ok yesterday

remy commented 4 years ago

Fix inbound.

remy commented 4 years ago

That's gone up to the extension market place now. I also fixed that annoying bug where cspect wouldn't lunch if there was a validation error (usually incorrect) - not sure how that crept in.