1

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

3

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"))
  • pylint is installed, using it outside emacs atm – Lars Nielsen Apr 16 '18 at 18:54
  • Can you run it from inside Emacs shell? It might be installed but not seen by emacs – Konstantin Levinski Apr 17 '18 at 0:38
  • you can see the edit, I have made :) – Lars Nielsen Apr 17 '18 at 6:32
  • If you just do M-x pylint on your python buffer, what is the output? Is the linting happening? – Konstantin Levinski Apr 17 '18 at 8:41
  • that I cannot do – Lars Nielsen Apr 17 '18 at 9:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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