Comments (5)
Hey @J0J0HA , where do you see this MemoryError? If it is in the console from the Hub, what happens if you perform the same action but using LEGO's app?
Another thing you can try (if you haven't done already) is to enable in your vscode settings to compile programs before upload:
from lego-spikeprime-mindstorms-vscode.
Thank you, I'll try that tomorrow.
It is in the console of the Hub. It gives it not if I run it over the SPIKE Prime App directly, it'll work, but if i download it via the SPIKE Prime App, and run it on the Hub, it does not work. I think it's because I'm creating too much objects in the code. But, even if nothing chnaged (but the battery), it does now work for 30-40 downloads rather than 1 as before.
I think activating the compiling will help, but I'd still have one question. Is your plugin optimized for v2/Legacy or for v3? (I use Legacy). I ask this, because the docs say, the main difference is about the file transferring.
I dont think it'll help, put the MemoryError is thrown in programrunner/init "while allocating 163 bytes" The 163 stay all the time, even if the code length changes, but i expirienced that the error is thrown more often if I use multiline strings for block comments as if i put a # on the beginning of every line. So I guess it still depends on how many objects are being created.
from lego-spikeprime-mindstorms-vscode.
If the LEGO app works fine, probably the problem is with the compile since their app by default compiles sources before uploading. But since the error happens in the programrunner
which is on the hub, this indicates problem on the hub itself.
As for v2/v3 - the extension works ONLY with v2. You can subscribe to #55 for updates on if/when v3 will be supported.
from lego-spikeprime-mindstorms-vscode.
No further response so closing this one for now. In case you still have problems, please provide more details.
from lego-spikeprime-mindstorms-vscode.
Sorry for not answering, the issue is resolved. It worked since I activated compile, but I still needed to use some less objects.
It is more likely the problem was on the hub, because it also happened when I ran Programs I downloaded through the SPIKE Prime App manually.
Unfortunately, I don't know exactly anymore how the issue got resolved, but I never got the issue again and I am happy with your extension :)
Thank you for your assitance and sorry for not responding again.
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
- 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.