How to get pylint warnings to be marked in the Pydev Eclipse editor margin?

后端 未结 5 2380
不知归路
不知归路 2021-02-20 06:54

I have pylint installed (works fine on the command line) and set up within Pydev in Eclipse.

Pylint is being triggered OK when I edit files, and is outputting to the Ecl

相关标签:
5条回答
  • 2021-02-20 06:59

    have you tried rebuilding your project?

    0 讨论(0)
  • 2021-02-20 07:05

    Ticket for this bug is titled java.lang.NumberFormatException with PyLint 0.24.0 and the bug was fixed in PyDev 2.2.2

    0 讨论(0)
  • 2021-02-20 07:12

    I was having the same problem, and it turned out to be my pylint configuration file (~/.pylintrc by default). Be sure the output-format field is correct. It is under the [REPORTS] section, and the line should be:

    output-format=text

    If you've ever used pylint with another application (I do with emacs), it might say output-format=parseable.

    0 讨论(0)
  • 2021-02-20 07:15

    I had this exact problem today, on a brand new system. I tracked down the cause, and it seems that PyDev refuses to pick up the messages from pylint 0.24.0, which was released on July 20, 2011.

    Reverting to the previous version (pylint 0.23.0) seems to have solved the problem. For me, that involved removing everything from Python's Lib/site-packages directory that was related to pylint, and then running python setup.py install from the directory I'd extracted pylint 0.23.0 into. (Without deleting those files in the site-packages directory first, it kept using the new version.) But after both those steps, the messages started showing up in PyDev as expected.

    You can check your pylint version with pylint --version from a shell prompt; if it shows 0.23.0 you're good to go.

    0 讨论(0)
  • 2021-02-20 07:17

    Only modules reachable through PYTHONPATH are passed to pylint, so you need to set your PYTHONPATH correctly in the project options.

    0 讨论(0)
提交回复
热议问题