-
Notifications
You must be signed in to change notification settings - Fork 23
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
flake8 errors missing from *Flycheck errors* buffer #11
Comments
@posita Thanks for the report! I'm currently running a different version of flake8, so it's very possible that the format has changed.
That said, though, it seems weird that it would show up in one place but not another if there was a parse issue. I notice that you're running If so, I'll try to find some time to investigate this soon and release a fix! |
smacks forehead Weird. As an aside, if I remove all customizations for that variable, it defaults to UPDATE: The noted defaults are intended. I wonder when I screwed up my own config. 🤔 In any event, apologies again for the distraction! 😞 |
Even if after some years... Elpy runs the flake8 command only when a python file is visited for the first time (or reverted), then it passes the control to flymake. (add-hook 'elpy-mode-hook 'flymake-mode-off)
(add-hook 'elpy-mode-hook 'flycheck-mode) Then to prevent elpy from running flake8 I set an invalid command string:
Moreover I changed the checkers for flycheck-pychechers to:
With this setup the Flycheck errors buffer is empty, though if I run the flycheck-pycheckers python script from shell with Might it be a wrong parsing through Flyckech, i.e. an erroneous checker definition in the flycheck-pychecker.el file? |
@sfavazza Thanks for the report! It looks like the output of flake8 is different than the regex is expecting -- e.g. the first item in an output line is "WARNING/ERROR", while the checker is expecting a filename first. I've opened a separate issue (#47) to track this -- let's continue the conversation there. |
I have pycheckers set up with
flake8
,mypy
, andpylint
. I'm not sure when this started happening, butflake8
items no longer appear in the error list. They still show up in the minibuffer though when the cursor is on an offending line:I'm still investigating the underlying cause, but I suspect
flake8
may have changed its output format?Test file:
The text was updated successfully, but these errors were encountered: