Giter Club home page Giter Club logo

Comments (16)

remy avatar remy commented on June 7, 2024

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.

Screenshot 2020-05-26 at 18 29 04

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.

jsanjose avatar jsanjose commented on June 7, 2024

NextBASIC version 1.3.5
Operating system: Windows 10

Attached a screenshot of the NextBASIC config.

nextbasic-config-jsj

from vscode-nextbasic.

jsanjose avatar jsanjose commented on June 7, 2024

Also this is a screenshot showing the problem.

run-test-nextbasic

from vscode-nextbasic.

jsanjose avatar jsanjose commented on June 7, 2024

Also if it helps you I'm also sure that it worked right in the previous version.

from vscode-nextbasic.

remy avatar remy commented on June 7, 2024

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.

jsanjose avatar jsanjose commented on June 7, 2024

Sure, here you have it attached.

index.zip

from vscode-nextbasic.

remy avatar remy commented on June 7, 2024

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.

jsanjose avatar jsanjose commented on June 7, 2024

Sure here it goes...

test.bas.txt.zip

F.Y.I: my vscode version is 1.45.1

image

from vscode-nextbasic.

remy avatar remy commented on June 7, 2024

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.

jsanjose avatar jsanjose commented on June 7, 2024

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.

test.zip

from vscode-nextbasic.

remy avatar remy commented on June 7, 2024

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.

remy avatar remy commented on June 7, 2024

Am able to replicate on a windows machine (with lunch!)

from vscode-nextbasic.

jsanjose avatar jsanjose commented on June 7, 2024

Nice! So seems only a problem in the Windows version of VScode.

from vscode-nextbasic.

remy avatar remy commented on June 7, 2024

Found the bug and getting a fix ready.

from vscode-nextbasic.

remy avatar remy commented on June 7, 2024

Extension version: 1.3.9 will have the fix - going live now.

from vscode-nextbasic.

jsanjose avatar jsanjose commented on June 7, 2024

Working now! Nice!

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.