Giter Club home page Giter Club logo

Comments (17)

remy avatar remy commented on September 27, 2024 1

yep - you can disable it from the settings ("Perform custom inline NextBASIC validation" - uncheck that)

from vscode-nextbasic.

remy avatar remy commented on September 27, 2024 1

Found the code now, it says the default is false, but somehow I changed the default much deeper down to true 🤦

from vscode-nextbasic.

remy avatar remy commented on September 27, 2024 1

Okay, v1.11.1 (all the ones) disables validation during export. Sorry that took so long.

from vscode-nextbasic.

remy avatar remy commented on September 27, 2024

Note to self: I need to merge the logic from the parser across to the validation (specifically subStatement int logic)

from vscode-nextbasic.

NealeTools avatar NealeTools commented on September 27, 2024

Bump: example 2 and 3 still fail export in v1.11.8

from vscode-nextbasic.

remy avatar remy commented on September 27, 2024

Yeah, this is validation, as per my comment, I need to make time to merge the logic from the new parsing to the validator (not a simple process)

from vscode-nextbasic.

NealeTools avatar NealeTools commented on September 27, 2024

In the short-term could you just turn off the validator? The code compiles and runs fine in CSpect, so the tokenisation is OK, but export never happens due to the check, so I cannot test any export functionality etc. :-)

from vscode-nextbasic.

NealeTools avatar NealeTools commented on September 27, 2024

Great! My apologies for not realising what this option did! 🫣

from vscode-nextbasic.

NealeTools avatar NealeTools commented on September 27, 2024

Hi @remy : Unfortunately, unticking this option does not allow the export to complete. I can see that the red underline no longer is present, but the file does not build if there are any syntax errors. This prevents me exporting to test on HW via NextSync, which is an essential part of my workflow now because I am using some HW features that CSpect does not support - thanks!
image

from vscode-nextbasic.

remy avatar remy commented on September 27, 2024

from vscode-nextbasic.

NealeTools avatar NealeTools commented on September 27, 2024

@remy Apologies for the nag, but is there any quick fix for turning off the validation on export? I feel like the new parser is 99% there! :-)
The validation check is currently preventing me from exporting working code as multiple .bank sections—or indeed exporting any code for test on HW. Thanks!

from vscode-nextbasic.

remy avatar remy commented on September 27, 2024

I'm snagging early morning time to get these done.

Any chance you have a snippet of the code that's causing this. I'm reviewing the code and it "says" it's not validating by default, so I wonder if I'm missing something else...

from vscode-nextbasic.

NealeTools avatar NealeTools commented on September 27, 2024

IF %SPRITE AT (j,1)>127 THEN SPRITE CONTINUE %j,,%SPRITE AT (j,1)-(i*i[0]) TO %239 STEP %SGN{-i[0]} RUN

from vscode-nextbasic.

NealeTools avatar NealeTools commented on September 27, 2024

Also %CODE and ERROR$ get underlined.
They pass "run in CSpect", so get encoded correctly, but the syntax checker flags them (red underline) and stops the Export script.

from vscode-nextbasic.

NealeTools avatar NealeTools commented on September 27, 2024

Actually, %CODE seems OK now, but ERROR$ is underlined and fails:
image

from vscode-nextbasic.

NealeTools avatar NealeTools commented on September 27, 2024

Here is the another one:
image

from vscode-nextbasic.

NealeTools avatar NealeTools commented on September 27, 2024

Thanks Remy! I can confirm the export now works (syntax is still underlined in red when enabled).

I'll try out bank exports next and hopefully there won't be any further headaches I unearth! :-)

from vscode-nextbasic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.