Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment in terminal different than bottom left, no warning that they are mismatching #15814

Closed
jose-applesox opened this issue Mar 30, 2021 · 5 comments
Assignees
Labels
area-terminal bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@jose-applesox
Copy link

Environment data

  • Language Server version: 2021.3.4-pre.1
  • OS and version: win32 x64
  • Python version (and distribution if applicable, e.g. Anaconda): Anaconda

Imported mip and openpyxl with pip and requirements.txt

Expected behaviour

No error

Actual behaviour

Import could not be resolved. Interpreter runs OK.

@jakebailey
Copy link
Member

Did you install these packages while Pylance was running and expected to see them resolve, or was this a project you opened where the packages were already installed?

Do you have the correct interpreter selected at the bottom left? We use the same python interpreter for imports that is activated in the Python extension.

Do you have trace logs? Our bug template asks for them. https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue

@jose-applesox
Copy link
Author

jose-applesox commented Mar 30, 2021 via email

@jakebailey
Copy link
Member

I'm not entirely certain how the Python extension would be able to tell, but I can transfer this issue to them as that sort of thing (interpreter selection and terminal activation) is under their purview).

@jakebailey jakebailey changed the title Installed packages reported as missing Environment in terminal different than bottom left, no warning that they are mismatching Mar 30, 2021
@jakebailey jakebailey transferred this issue from microsoft/pylance-release Mar 30, 2021
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Mar 30, 2021
@karthiknadig karthiknadig self-assigned this Mar 31, 2021
@karthiknadig karthiknadig added area-terminal triage bug Issue identified by VS Code Team member as probable bug and removed triage-needed Needs assignment to the proper sub-team labels Mar 31, 2021
@karthiknadig
Copy link
Member

@jose-applesox If you are using virtual environment then it should activate in the terminal. Please provide details on the environment type and logs from output > python panel.

But if it is non-virtual environment based python, then python in the terminal will be based on whatever is the python that is available on PATH. We have #8907 to track improvements in that scenario.

@karthiknadig karthiknadig added the info-needed Issue requires more information from poster label Apr 8, 2021
@brettcannon
Copy link
Member

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-terminal bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

4 participants