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

Installation Instructions? #6

Closed vinitkumar closed 6 years ago

vinitkumar commented 6 years ago

Hi, wanted to use it. Can't find it in Pycharm plugins or repositories. Could you please add installation? I also downloaded the repo and trying to import setting mypy-plugin.jar, It didn't work. Please let me know if I am doing something wrong.

Thanks :)

ilevkivskyi commented 6 years ago

Yes, sorry, I will add installation steps. It should be quite simple:

  1. Download mypy-plugin/mypy-plugin.jar
  2. In PyCharm go to Preferences -> Plugins -> Install plugins from disc -> Select this file -> Restart PyCharm when prompted.
  3. After restart you should find the plugin in View -> Tool windows -> Mypy terminal

Does this work for you?

ilevkivskyi commented 6 years ago

Just a note: The plugin requires mypy to be already installed.

vinitkumar commented 6 years ago

@ilevkivskyi Thanks for your response.

vinitkumar commented 6 years ago

Alright, I am able to install it but not able to make it work properly. Getting /bin/bash: dmypy: command not found

Which is strange since I have mypy installed.

screenshot 2018-05-31 at 2 10 32 am screenshot 2018-05-31 at 2 11 08 am

Sorry for bothering with these small issues. Just excited to get it to work.

ilevkivskyi commented 6 years ago

This means you need to configure the PATH prefix. Right click on mypy terminal -> Configure plugin. There you need to enter the place where you installed mypy. It looks like you are using virtualenv, this means mypy is installed there, so you need to enter ~/.virtualenvs/celery/bin (like in your Python version on the screenshot above, but without Python at the end). Does this work now?

vinitkumar commented 6 years ago

Indeed. That was the issue. Thanks for your help. Really appreciate it. 👍