Git Product home page Git Product logo

Comments (8)

ws1088 avatar ws1088 commented on June 12, 2024 1

Ah, I'm not sure about terminating it programatically. Never needed to do this. But considering that even in the official MINDSTORMS app you need to push a button to terminate the app, I doubt it is possible.

Most of the Spike community has been using raise SystemExit to force the program to exit

from lego-spikeprime-mindstorms-vscode.

PeterStaev avatar PeterStaev commented on June 12, 2024

Hey @Neko1993 , are you overriding the default print as readme says? Basically no matter if you are using simple or advance you need to have the following if you want the print to output in the VS Code console:

from util.print_override import spikeprint
print = spikeprint

from lego-spikeprime-mindstorms-vscode.

Neko1993 avatar Neko1993 commented on June 12, 2024

Wow, thanks a lot! I did not notice.

Do you know, is there a command to terminate the execution of the program?

from lego-spikeprime-mindstorms-vscode.

PeterStaev avatar PeterStaev commented on June 12, 2024

Yes, just do a an F1 in VSCode and search for lego hub. There should be a Terminate Running Program command :)

from lego-spikeprime-mindstorms-vscode.

Neko1993 avatar Neko1993 commented on June 12, 2024

Yes, but how I can do it programmatically?

After all lines have been executed, the program does not terminate on hub. Usually I put a non-existent command so that the program would exit by mistake

from lego-spikeprime-mindstorms-vscode.

PeterStaev avatar PeterStaev commented on June 12, 2024

Ah, I'm not sure about terminating it programatically. Never needed to do this. But considering that even in the official MINDSTORMS app you need to push a button to terminate the app, I doubt it is possible.

from lego-spikeprime-mindstorms-vscode.

Neko1993 avatar Neko1993 commented on June 12, 2024

Thank you! for answers and extension!)

from lego-spikeprime-mindstorms-vscode.

ws1088 avatar ws1088 commented on June 12, 2024

Is it possible to add a setting to print() to vscode output without

from util.print_override import spikeprint as print

I have tested it out by adding a line to print whatever is not JSON parsable to:

And it seems working. Just want to know whether you are willing to make such change? Maybe via a setting?

from lego-spikeprime-mindstorms-vscode.

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.