Open shanks13 opened 1 year ago
I am running rp2-pico-20220618-v1.19.1.uf2 micropython the Pico
Update - it actually started working - sporadic, but it does run main.py from the terminal with repeated tries and imports the other class files.
I'm working on a new implmenetation of the part of this extension which handles the communication between the pico and vscode. This should also fix this issue...
That's fantastic - you're the best. This is a great extension BTW - thank you !
I am having this issue as well - everything works on Thonny, but in VS code running code with multiple files is a no go -- which limits me to using monolithic single file source code.
Is there an ETA for the fix?
Thank you
It's been working well for me now. Make sure there is a init.py file uploaded to the pico. Then running main.py through the pico-vREPL terminal works great with the multi-file OOP projects. Print statements back to the terminal also working just fine.
Feature Request 🚀
When creating multiple files (one per class) and attempting to run main.py from terminal, the following error occurs Traceback (most recent call last): File "", line 1, in
ImportError: no module named 'led'
In the test only one class in a file led.py was created and line 1 of main.py was import led
Have tried running the same code on Thonny and works fine via the terminal. An init.py was created in the project folder too.
Right now the only way to execute a multi-file OOP in micropython is by uploading the project files to the pico in order to test each change.