6

I have installed flycheck and pylint and want to use pylint for python mode, but when selecting syntax checker with flycheck I get this:

  python-pylint (disabled)
    - major mode:         `python-mode' supported
    - may enable:         Automatically disabled!
    - executable:         Found at /usr/bin/python
    - configuration file: Found at "/home/tools/.pylintrc"
    - `pylint' module:    Missing

Flycheck cannot use this syntax checker for this buffer.

and can simply not figure out what is wrong. I have googled but cannot find the answer

Pylint is installed and can be executed from within emacs: enter image description here

1 Answer 1

6

Here is an example of a working configurationCorrect configuration

Note that executable is not that of python itself (as in your case) but to actual pylintrc that you want to use.

This can be achieved with the following .emacs snippet:

(add-hook 'python-mode-hook
          (lambda ()
            (setq flycheck-python-pylint-executable "<your path to>/pylint")
            (setq flycheck-pylintrc "/home/tools/.pylintrc")))
13
  • pylint is installed, using it outside emacs atm Apr 16, 2018 at 18:54
  • Can you run it from inside Emacs shell? It might be installed but not seen by emacs Apr 17, 2018 at 0:38
  • you can see the edit, I have made :) Apr 17, 2018 at 6:32
  • If you just do M-x pylint on your python buffer, what is the output? Is the linting happening? Apr 17, 2018 at 8:41
  • that I cannot do Apr 17, 2018 at 9:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.