Comments (16)
Hmm, this is weird. I just tried to replicate and it was okay, so there's something going with your setup that my code is getting confused with - that's to say: it's broken for you (and probably others), so let's find out why.
Can you let me know:
- What version of NextBASIC extension you're using?
- What operating system you're using (and possibly version)
- Add any extra information about your dev environment
from vscode-nextbasic.
NextBASIC version 1.3.5
Operating system: Windows 10
Attached a screenshot of the NextBASIC config.
from vscode-nextbasic.
Also this is a screenshot showing the problem.
from vscode-nextbasic.
Also if it helps you I'm also sure that it worked right in the previous version.
from vscode-nextbasic.
Thanks. One extra question, are you able to connect to the Cspect image and upload the file in /devel/index.bas
- it's the NextBASIC file that's generated on the fly and it might have some clues in the file (but make sure you've not saved it inbetween in the native NextBASIC editor).
from vscode-nextbasic.
Sure, here you have it attached.
from vscode-nextbasic.
And to confirm, this happens consistently? i.e. you've got it on any file, it has nothing to do with line 10
or anything (not that I can see how it would be).
There's nothing that jumps out at me, so I'm trying to think how VS Code would be giving the extension only part of the fileβ¦
Actually, could you zip up your source .txt file and post that too? Just to rule out any encoding in the source.
from vscode-nextbasic.
Sure here it goes...
F.Y.I: my vscode version is 1.45.1
from vscode-nextbasic.
I'm struggling to find where this is happening my code. Another test that might be useful, can you run the NextBASIC: export to binary .bas
against your text file and send the resulting .bas file?
from vscode-nextbasic.
Here it is the resulting .bas from "export to binary .bas". Amazingly this one works well if I copy it to the virtual SD card of the CSpect.
from vscode-nextbasic.
This is good, and suggests the problem is in the vscode extension (and not in the underlying txt2bas logic), and it also means it's in the auto-run logic, so I know where to look. The bad news is I can't see anything that stands out, so I'll have to dig deeper and probably fire up the windows machine to see if I can replicate.
from vscode-nextbasic.
Am able to replicate on a windows machine (with lunch!)
from vscode-nextbasic.
Nice! So seems only a problem in the Windows version of VScode.
from vscode-nextbasic.
Found the bug and getting a fix ready.
from vscode-nextbasic.
Extension version: 1.3.9 will have the fix - going live now.
from vscode-nextbasic.
Working now! Nice!
from vscode-nextbasic.
Related Issues (20)
- Unable to run via CSpect on Windows HOT 3
- Space between number and int expression errors HOT 1
- Can the original autoexec.bas be protected/restored? HOT 1
- PRINT 1e6 fails HOT 2
- Command 'nextbasic.run' not found HOT 3
- Feature request: Multi conversion of txt2bas on RUN? HOT 1
- Export to .BAS causes errors with new NextZXOS 2.08 integer syntax HOT 1
- #xxx is unknown and not in a #define statement HOT 1
- New version of NextBasic HOT 1
- How to GOTO when #autoline used HOT 3
- V1.10.0 tokenising bug with ELSE IF HOT 2
- 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
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.