Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable/fix Suspicious state from syntax checker python-mypy message in emacs #9784

Closed
avatar-lavventura opened this issue Dec 6, 2020 · 4 comments
Labels

Comments

@avatar-lavventura
Copy link

On emacs, I keep having following warning message, even I have the recent version of python-mypy not sure why this warning message is generated; is there any way to fix this, or just disable it?

Suspicious state from syntax checker python-mypy: Flycheck checker python-mypy returned 2, but its output contained no errors:
utils.py: error: Source file found twice under different module names: 'Program.utils' and 'utils'
Found 1 error in 1 file (checked 1 source file)

Try installing a more recent version of python-mypy, and please open a bug report if the issue persists in the latest release.
Thanks!

pip-setup:

$ pip freeze | grep mypy
flake8-mypy==17.8.0
mypy==0.790
mypy-extensions==0.4.3

output of elpy-config within the emacs:

Elpy Configuration

Emacs.............: 26.3
Elpy..............: 1.34.0
Virtualenv........: venv (/home/alper/venv)
Interactive Python: python3 3.7.5 (/home/alper/venv/bin/python3)
RPC virtualenv....: rpc-venv (/home/alper/.emacs.d/elpy/rpc-venv)
 Python...........: python 3.7.5 (/home/alper/.emacs.d/elpy/rpc-venv/bin/python)
 Jedi.............: 0.17.2
 Rope.............: 0.16.0
 Autopep8.........: 1.5.4
 Yapf.............: 0.30.0
 Black............: 20.8b1
Syntax checker....: flake8 (/home/alper/venv/bin/flake8)
@hauntsaninja
Copy link
Collaborator

Unrelated to emacs, see #8944 (comment) and other comments on that issue. Ask on Gitter if you need more help

@avatar-lavventura
Copy link
Author

@hackaugusto So do I have to remove the __init__.py file on the base directory?

@hackaugusto
Copy link
Contributor

@avatar-lavventura you probably at'ed the wrong handle.

@avatar-lavventura
Copy link
Author

avatar-lavventura commented Dec 7, 2020

@hackaugusto at'ed ?

=> The real problem is warning message keep showing up itself on the mini-buffer (which usually covers the 2/5 of the windows since message is long) and it shows up always after each save and become highly distracting.

I know it is unrelated to emacs but it affects the behavior of emacs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants