You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 23, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 23, 2021. It is now read-only.
not sure if it is the place to ask this kind of question, sorry I'm new to github
I've created a project directory
created a python venv inside the directory
activated the venv
created a new .py file by the command "device simulator express : new file"
(so via vs code inside the venv)
answered yes to the pop up to install the required files
all seems to work, the simulator work the py script runs, but the autocompletion don t work
did I do something wrong ?
maybe i don t need to create a venv by myself ?
thanks for any help and sorry if rise an issue for nothing
I'm seeing a similar problem where from microbit import * is unrecognized. However I can find the modules under from micropython.microbit import *.
The latter import works for Intellisense and the simulator but I need to change it back to from microbit import* when deploying to the actual microbit.
I'm seeing a similar problem where from microbit import * is unrecognized. However I can find the modules under from micropython.microbit import *.
The latter import works for Intellisense and the simulator but I need to change it back to from microbit import* when deploying to the actual microbit.
Have exactly the same issue on Mac with latest VSCode and Extensions. The same seems to work on raspberry pi though.
The extension doesn't use the "real" libraries but has its own "fake" versions that work with the simulator. There's probably a structural difference you are encountering, that we need to fix.
Activity
andreamah commentedon May 19, 2020
Hi mess-maker ! You don't need to create a venv by yourself, since the extension should make one for you if you don't have one.
If you decide that you want to use your own custom venv, please do the following:
Either way, there is no need to activate the venv 😊.
lukequeenan commentedon May 24, 2020
I'm seeing a similar problem where
from microbit import *is unrecognized. However I can find the modules underfrom micropython.microbit import *.The latter import works for Intellisense and the simulator but I need to change it back to
from microbit import*when deploying to the actual microbit.erongd commentedon Jul 28, 2020
Have exactly the same issue on Mac with latest VSCode and Extensions. The same seems to work on raspberry pi though.
gramster commentedon Aug 26, 2020
The extension doesn't use the "real" libraries but has its own "fake" versions that work with the simulator. There's probably a structural difference you are encountering, that we need to fix.