dropbox / mypy-PyCharm-plugin

A simple plugin that allows running mypy from PyCharm and navigate between errors
Apache License 2.0
313 stars 14 forks source link

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

Closed salimfadhley closed 5 years ago

salimfadhley commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

aguestuser commented 5 years ago

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