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

杀马特。学长 韩版系。学妹 提交于 2019-12-04 02:41:31

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.

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.

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

have you tried rebuilding your project?

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!