remy / vscode-nextbasic

VS Code tools for NextBASIC

Home Page:https://marketplace.visualstudio.com/items?itemName=remysharp.nextbasic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with Integer Variable in 1.4.5

Andy1966uk opened this issue · comments

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

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...

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

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

Screenshot 2020-07-17 at 08 18 18

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

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

30 PRINT "ok":%x=255

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

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

Fix inbound.

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.