PyLint 1.0.0 with PyDev + Eclipse: “include-ids” option no longer allowed, breaks Eclipse integration

余生长醉 提交于 2019-12-04 23:05:50

问题


As noted in this question: How do I get Pylint message IDs to show up after pylint-1.0.0?

pylint 1.0.0 no longer accepts "include-ids" option. (It returns "lint.py: error: no such option: --include-ids"). Unfortunately, in the integation with PyDev/Eclipse, there is this little nugget: "The --include-ids=y is always included...".

How to disable that argument so that Pylint will work with Eclipse?

[I know, other alternatives include installing an older version of Pylint or running pylint from command line without that option (which does work), but I'd like to have the integration with Eclipse.]


回答1:


This should be already fixed in the latest nightly build. Please grab it there.

See: http://pydev.org/download.html for details on how to get it.




回答2:


To make ID's appear in the Problem View on Eclispe using PyDev, make sure you use

msg-template={msg_id}:{line:3d},{column}: {obj}: {msg}

in pylintrc or on the command line options. Eclipse needs this to parse the PyLint output.




回答3:


The following option works with pylint v1.4.3 under pydev v3.9.2:

--msg-template="{msg_id}:{line:3d},{column:2d}:{msg}"

Note: Don't put space(s) after the semicolons otherwise it does not work.



来源:https://stackoverflow.com/questions/18362779/pylint-1-0-0-with-pydev-eclipse-include-ids-option-no-longer-allowed-break

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