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

Suspicious state from syntax checker python-pycompile #635

Closed
isker opened this issue Apr 30, 2015 · 6 comments
Closed

Suspicious state from syntax checker python-pycompile #635

isker opened this issue Apr 30, 2015 · 6 comments

Comments

@isker
Copy link

isker commented Apr 30, 2015

Hi. There seems to be some sort of issue with the formatting of errors coming from python-pycompile.

The code

for foo in bar:
    []

where the brackets signify the cursor position produces this flycheck output.

Suspicious state from syntax checker python-pycompile: Checker python-pycompile returned non-zero exit code 1, but no errors from output: Sorry: IndentationError: expected an indented block (test.py, line 2) Checker definition probably flawed.

This definitely seems to be a valid error. My grasp of elisp is minimal so I can't really follow the checker's function to see why this is considered suspicious.

M-x flycheck-version produces Flycheck version: 0.24snapshot (package: 20150412.242).

@swsnr
Copy link
Contributor

swsnr commented Apr 30, 2015

@CannedYerins Apparently the error regexp is incomplete.

I'd recommend you to use Pylint or flake8 for Python, though.

@swsnr
Copy link
Contributor

swsnr commented May 6, 2015

@CannedYerins Totally forgot about this: Can you tell me your Python version?

@isker
Copy link
Author

isker commented May 6, 2015

2.7.9

@swsnr swsnr closed this as completed in a4244af May 11, 2015
@swsnr
Copy link
Contributor

swsnr commented May 11, 2015

@CannedYerins Should be fixed now. Please check with the next MELPA build.

@omps
Copy link

omps commented Jun 16, 2015

Hi Lunaryorn,

I am facing similar issue while opening python code in emacs with flake8
Suspicious state from syntax checker python-flake8: Checker python-flake8 returned non-zero exit code 1, but no errors from output:Checker definition probably flawed.

i am using
Flycheck version: 0.24snapshot (package: 20150612.235)

and python version
Python 2.7.6

@swsnr
Copy link
Contributor

swsnr commented Jun 16, 2015

@omps That's a different problem, so please open a separate issue. But before doing so, please check that flake8 is generally working on your system.

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

No branches or pull requests

3 participants