Comments (8)
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.
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.
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.
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.
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.
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.
Thank you! for answers and extension!)
from lego-spikeprime-mindstorms-vscode.
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)
- How to make the program exit after it's finished HOT 4
- Importing self made modules. HOT 2
- How to download to the brick? HOT 3
- Can't Upload program when unplug USB cable and Plugged again HOT 4
- automatic saving in slot HOT 2
- List more advanced features :-) HOT 1
- Bluetooth not showing up on windows 10 HOT 4
- Cannot find imports. HOT 5
- FLL Coach here (not an actual "issue") HOT 1
- Is it works? HOT 2
- MemoryError when uploading and starting files multiple times HOT 5
- Support for HubOS 3 HOT 14
- question about usage HOT 2
- Enhance COM ports lists HOT 6
- Reconnection over BT fails after disconnect from VScode extension for some time
- spike prime new os connect HOT 1
- Trouble uploading code via VSC HOT 6
- Extension creates *.assembled.py file HOT 1
- Connection to Spike Prime HUB fails over USB without error message HOT 22
- Inlcude a screen shot of the run buttons
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 lego-spikeprime-mindstorms-vscode.