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

/bin/bash: dmypy: command not found #8

Closed fniessink closed 6 years ago

fniessink commented 6 years ago

This is with PyCharm 2018.1.3 CE on macOS High Sierra 10.13.4, Python 3.6.1, mypy 0.600.

In a regular bash:

$ which mypy
/Library/Frameworks/Python.framework/Versions/3.6/bin/mypy
$ which dmypy
/Library/Frameworks/Python.framework/Versions/3.6/bin/dmypy

So everything seems to be fine, except that the plugin can't find dmypy. Could it be that the plugin is using the wrong Python version (Macs also have a Python 2.7 version)?

ilevkivskyi commented 6 years ago

Plugin cannot find your install because it doesn't have full environment. I think the simplest solution is right click in plugin window -> Configure window -> set PATH suffix to the bin directory where you installed mypy. Does this work for you?

ilevkivskyi commented 6 years ago

(Also I think I will add configuration steps in README, since this problem already appeared few times.)

srgkm commented 6 years ago

@ilevkivskyi Thanks! This works for me. But it was difficult to find "plugin window" :)

fniessink commented 6 years ago

@ilevkivskyi Yes, that helps. Got it working now. Thanks!

codenamesubho commented 5 years ago

@fniessink @srgkm @ilevkivskyi I am using Pycharm 2019.2 build, can you mention how to find configure window? Is plugin window the window with list of plugins installed/marketplace? If so , i couldn't find a configure option/window there.

ilevkivskyi commented 5 years ago

@codenamesubho The window of the plugin itself (i.e. what appears at the lower part of PyCharm window on the screenshot in README).