Closed bbc2 closed 4 years ago
This can probably be fixed by turning live_mode
setting off (see example config in readme) - the as-you-type checker doesn't know where a given chunk of code lives in the filesystem.
Ah, that seems fair. Turning off live mode indeed fixes the issue.
Thanks for confirming! I'm curious if using the mypy daemon will fix it.
Some relative imports cause errors. Here's an example:
Directory structure:
bar.py
:baz.py
:Runtime test:
Mypy test:
But when
pyls-mypy
is installed, the language server complains about the relative import inbaz.py
:If I uninstall this extension, the error disappears and the rest of the language server works as expected but without Mypy messages.