Comments (17)
yep - you can disable it from the settings ("Perform custom inline NextBASIC validation" - uncheck that)
from vscode-nextbasic.
Found the code now, it says the default is false, but somehow I changed the default much deeper down to true 🤦
from vscode-nextbasic.
Okay, v1.11.1 (all the ones) disables validation during export. Sorry that took so long.
from vscode-nextbasic.
Note to self: I need to merge the logic from the parser across to the validation (specifically subStatement int logic)
from vscode-nextbasic.
Bump: example 2 and 3 still fail export in v1.11.8
from vscode-nextbasic.
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.
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.
Great! My apologies for not realising what this option did! 🫣
from vscode-nextbasic.
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!
from vscode-nextbasic.
from vscode-nextbasic.
@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.
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.
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.
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.
Actually, %CODE seems OK now, but ERROR$ is underlined and fails:
from vscode-nextbasic.
from vscode-nextbasic.
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)
- v1.11.0 #bank BANK20 gives error "A system error occurred (EROFS: read-only file system, open 'BANK20')" HOT 4
- #bank sections and index.bas not always building with RUNinCSpect v1.11.1 HOT 42
- LAYER PALETTE %0 BANK 32,%0 nonsense in basic
- PRINT POINT encoding bug HOT 5
- Possible EXPORT to Bank issue in Windows 11 HOT 6
- Export to .bas (when "strip comments enabled") renumbers exported file HOT 19
- 10 PRINT AT %1,%29;%840/PEEK 23672 HOT 2
- %d=%d-(IN 57342 &1)+(IN 57342 &2>>1) HOT 1
- Auto run of Index.bat fails from 1.11.0 onwards HOT 6
- Lack of white space between @ and next char in labels HOT 4
- %SGN {RND40} encoding bug HOT 5
- Parsing/encoding bug: SPRITE CONTINUE %n+1,%n<8*128 TO %n<8*128+127 STEP 1 RUN
- Simultaneous Mono/CSpect/mono-sgen64 spawn HOT 9
- IF %ABS SPRITE AT (36,3)<6 THEN
- BANK %27 DPOKE %y<<1,%BANK 27 DPEEK (319-n<<1) HOT 5
- v1.11.8 New bug: FOR %n=%0 TO %255 STEP 4:
- v1.11.8 ON...ELSE IF bug HOT 1
- How to view +3DOS BASIC file without control characters in Visual Studio Code under macOS? HOT 3
- v1.11.11 Import to BANK failing - missing last lines (edited) HOT 30
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-nextbasic.