Skip to content

Improve how to surface that an interpreter needs to be selected #505

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

Closed
bbrendon opened this issue Dec 31, 2017 · 9 comments
Closed

Improve how to surface that an interpreter needs to be selected #505

bbrendon opened this issue Dec 31, 2017 · 9 comments
Labels
feature-request Request for new features or functionality info-needed Issue requires more information from poster

Comments

@bbrendon
Copy link

bbrendon commented Dec 31, 2017

Environment data

VS Code version: 1.19.1
OS and version: Linux (I'm guessing Windows also has this issue)

Actual behavior

  • Errors lead me down a road of failure.

Expected behavior

  • Errors that lead me down a road of success.

Steps to reproduce:

  • Setup a python 3 dev environment

Summary

See #266 (comment)

Basically, right now VS Code is unfriendly when dealing with errors setting up a code environment. Even --verbose is not that helpful.

To paraphrase the other issue:

The UI says Python in the bottom right hand corner and I have everything python working except Code thinks otherwise (errors in this issue).

How am I supposed to know that I need to pick and interpreter when Python is already selected? The system doesn't tell you that. It just throws meaningless errors.

Maybe you can combine or connect the interpreter and language mode features.

@brettcannon brettcannon added info-needed Issue requires more information from poster feature-extension feature-request Request for new features or functionality and removed closed-wontfix labels Jan 2, 2018
@brettcannon
Copy link
Member

I don't quite follow what you're asking for? It's outlined in the official tutorial that you need to select your Python interpreter. And we don't want to go overboard with banners saying you need to select an interpreter as it's reasonable to edit a file without an interpreter selected.

@benuklove
Copy link

benuklove commented Jan 5, 2018

@bbrendon I was having the same issue on Ubuntu 16.04. My solution was:

  1. Setup a virtualenv
  2. Change User Settings in VSCode:

Place your settings here to overwrite the Default Settings

{
    "workbench.colorTheme": "Visual Studio Dark",
    "python.pythonPath": "/path/to/venv/bin/python3"
}

This allowed me to install pylint with no problems.

Maybe @brettcannon or @DonJayamanne can indicate if this is a decent solution or not.

@brettcannon
Copy link
Member

@benuklove It's an acceptable solution to me.

@bbrendon
Copy link
Author

bbrendon commented Jan 6, 2018

I only created this because @DonJayamanne suggested it and I wasted a long time trying to figure out bogus error messages (as it seems others have as well). I can only make suggestions.

@DonJayamanne
Copy link

DonJayamanne commented Jan 6, 2018

@bbrendon I suggested creating this as you didn't seem to be happy with the current UX and workflow .

wasted a long time trying to figure out bogus error messages

This is what I'd like to address. And as mentioned in the previous issue, we will be addressing this soon.

@brettcannon brettcannon changed the title consider combining/connecting the interpreter and language mode features Improve how to surface that an interpreter needs to be selected Jan 8, 2018
@brettcannon
Copy link
Member

I've changed the title to try and reflect that the request is for better surfacing of the need to choose an interpreter while we wait to hear suggestions on what would be expected in an ideal scenario.

@brettcannon brettcannon added needs decision and removed info-needed Issue requires more information from poster labels Feb 22, 2018
@brettcannon
Copy link
Member

We've done a bunch of work since this was initially reported in automatically selecting an interpreter for people. Is this still not working as expected?

@brettcannon brettcannon added info-needed Issue requires more information from poster and removed needs decision labels Apr 10, 2018
@benuklove
Copy link

@bbrendon have you created any new Python environments lately?
If I'm not mistaken, my USER SETTINGS tries to take care of selecting the interpreter. But I usually change it in my WORKSPACE SETTINGS when I create a new virtualenv or pipenv.
And of course #811 and #266 are done, so, it looks good to me.

@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.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

4 participants