PeterStaev / lego-spikeprime-mindstorms-vscode

Helps you connect and work with Lego's SPIKE Prime/MINDSTORMS Robot Inventor hubs
Apache License 2.0
64 stars 22 forks source link

Can't find VirtualMachine in advanced mode #39

Closed BlockOG closed 2 years ago

BlockOG commented 2 years ago

The title says it all

BlockOG commented 2 years ago

After disassembling /programrunner/__init__.mpy I'm pretty sure you have to do from runtime.virtualmachine import VirtualMachine

BlockOG commented 2 years ago

Yep

PeterStaev commented 2 years ago

Hey @BlockOG , thanks for this! Previously the import line wasn't needed as it was automatically provided by the programrunner. Seems it was changed in the recent hub version. Adjusted the readme.