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

Linting not working #91

Open
stevenh opened this issue Apr 22, 2016 · 1 comment
Open

Linting not working #91

stevenh opened this issue Apr 22, 2016 · 1 comment

Comments

@stevenh
Copy link

stevenh commented Apr 22, 2016

I installed with Package control and it all seems to install correctly but linting fails.

The console with debug enabled shows:

[Flake8Lint DEBUG] update statusbar
[Flake8Lint DEBUG] run flake8 lint
[Flake8Lint DEBUG] skip view: filename is empty
[Flake8Lint DEBUG] update statusbar
[Flake8Lint DEBUG] run flake8 lint
[Flake8Lint DEBUG] ignore file patterns: ['.git', 'contrib']
[Flake8Lint DEBUG] python interpreter: auto
[Flake8Lint DEBUG] interpreter is external
[Flake8Lint DEBUG] guess interpreter: 'pythonw'
[Flake8Lint DEBUG] linter file: C:\Users\XXXX\AppData\Roaming\Sublime Text 3\Packages\Python Flake8 Lint\lint.py
[Flake8Lint DEBUG] interpreter is external
Traceback (most recent call last):
  File "./subprocess.py", line 1112, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\XXXX\AppData\Roaming\Sublime Text 3\Packages\Python Flake8 Lint\Flake8Lint.py", line 1164, in <lambda>
    lambda: Flake8Lint.async_lint(view, view_settings, quiet=quiet), 0
  File "C:\Users\XXXX\AppData\Roaming\Sublime Text 3\Packages\Python Flake8 Lint\Flake8Lint.py", line 1221, in async_lint
    interpreter, linter)
  File "C:\Users\XXXX\AppData\Roaming\Sublime Text 3\Packages\Python Flake8 Lint\lint.py", line 347, in lint_external
    startupinfo=startupinfo
  File "./subprocess.py", line 824, in __init__
  File "./subprocess.py", line 1118, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified

Looks like its looking for a python interpreter but the install docs don't mention any requirement on this, did I miss something?

@stevenh
Copy link
Author

stevenh commented Apr 22, 2016

Installing python for windows solved the issue, but still odd that its not mentioned as a requirement especially as it seems to be able to run python code otherwise it wouldn't have got that far.

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

No branches or pull requests

1 participant