Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

autocompletion in virtual env #373

Open

Description

@mess-maker

Hi,

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

Activity

  1. andreamah commented on May 19, 2020

    @andreamah
    Contributor

    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:

    1. Re-select the Python interpreter to point to your venv's interpreter
    2. Restart VS Code or select "install extension dependencies" from the command palette.

    Either way, there is no need to activate the venv 😊.

  2. lukequeenan commented on May 24, 2020

    @lukequeenan

    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.

  3. erongd commented on Jul 28, 2020

    @erongd

    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.

  4. gramster commented on Aug 26, 2020

    @gramster
    Contributor

    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.

  5. added
    bug
    on Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions