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

MyPy plugin doesn't work when the Python interpreter (and MyPy installation) are in a dockerized Python #25

Closed
salimfadhley opened this issue Nov 29, 2018 · 5 comments

Comments

@salimfadhley
Copy link

The plugin works fine if we use base system python or a virtual environment, however, if the Project's interpreter is running from Docker or a docker-compose configuration, the plugin doesn't seem to run.

I have a Python interpreter running from a Docker-Compose image. The image contains Python 3.6 and the MyPy library.

When you try to run the plugin you get a bubble:

Mypy Plugin
No Pythion interpreter is configured for the project.
Configure Python interpreter

If you click on "Configure Python Interpreter" it takes you to the Project Interpreter settings, however, there already is a Python interpreter for the project.

@ilevkivskyi
Copy link
Contributor

When you say "run the plugin", what do you mean, open the plugin window? or click the "Run" button in the plugin window? This is quite weird because the plugin doesn't need know the path to Python interpreter, only to mypy daemon. Maybe you can attach a screenshot?

@ilevkivskyi
Copy link
Contributor

Looking at the screenshots I got in an e-mail (I have no idea why the comment is not here anymore, was it deleted?) this is not our plugin.

@MrSaints
Copy link

MrSaints commented Dec 12, 2018

Hey @ilevkivskyi, yep, I deleted it after I found out it was probably the wrong plugin. It is the one installed from the marketplace, not manually. After installing this one, I got it working by modifying the command used, to use Docker instead. Looks like it works.

@aguestuser
Copy link

@MrSaints having a similar issue: how did you "modify.. the command used"?

@aguestuser
Copy link

answered my own question: you right-click anywhere in the mypy terminal module and click "Configure plugin..." from the contextual dropdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants