leinardi / mypy-pycharm

A plugin providing both real-time and on-demand scanning of Python files with Mypy from within PyCharm/IDEA.
Apache License 2.0
197 stars 31 forks source link

Giving warning "cannot find implementation or library stub for module" when source code in a sub folder #66

Open JakkuSakura opened 4 years ago

JakkuSakura commented 4 years ago

It warns cannot find implementation or library stub for module when I put my source code in a sub folder, while running directly mypy pacro will show no warnings.

$ tree
├── mypy.ini
├── pacro
│   ├── ast_nodes.py
│   ├── basic_interpreter.py
│   ├── basic_lexer.py
│   ├── basic_parser.py
│   ├── lexer_config.py
│   ├── lexer_token.py
│   ├── main.py
│   ├── pacro.py
│   ├── token_types.py
│   └── utils.py
└── README.md
$ cat mypy.ini
[mypy]
mypy_path = 'pacro'

$ mypy pacro
Success: no issues found in 10 source files
hstock commented 8 months ago

I have the same issue. It works when doing a manual scan, but the realtime scanner seems to ignore the Python Sources Root folder settings.