mypy-pycharm icon indicating copy to clipboard operation
mypy-pycharm copied to clipboard

Inspection does not work on attached projects

Open sfiel opened this issue 6 years ago • 2 comments

Step 1: Are you in the right place?

  • [x] I have verified there are no duplicate active or recent bugs, questions, or requests
  • [ ] I have verified that I am using the latest version of the plugin.

Step 2: Describe your environment

  • Plugin version: 0.10.6
  • PyCharm/IDEA version: 2019.2.3
  • Mypy version: 0.740

Step 3: Describe the problem:

Steps to reproduce:

I'm using an attached project in pycharm. The mypy inspection works on the first project, but when I hit 'Check Project' only this project is checked. Furthermore the imports used from the second project (which is also marked as source code folder in pycharm) are not found. It seems that the second project is not added to the MYPYPATH

Also when I open a file in the second project (with a mypy violation) and I press 'Check current file', it says "Mypy found no problems".

After pressing the 'Check project' Button the imported module of the second project is not found:

module_not_found

Scanning project_file2 with 'Check current file' scanning_file_two

Thank you

sfiel avatar Oct 25 '19 13:10 sfiel

This issue has been automatically marked as stale because it has not had activity in the last 60 days.

stale[bot] avatar Dec 24 '19 13:12 stale[bot]

The problem is still here for me. Any improvement on it? or is it a configuration error on my part?

thibaut-st avatar May 03 '22 10:05 thibaut-st