PyDev code analysis missing

被刻印的时光 ゝ 提交于 2019-12-08 15:30:52

问题


I have installed Eclipse 3.7.2 from APT in Ubuntu 12.04, and installed PyDev in Eclipse. First, it warns unused import and unused wild import, but it no longer displays them today. However, it can display errors like missing parenthesis.

I created a new user, and installed PyDev using that user, problem still happens. How can I enable them for warnings? I have not change the code analysis settings.


回答1:


list all operations could solve it here, for others convenience, and make this question closed

  • remove the project and recreated it, and this time the project dir is the the PYTHONPATH

  • remove your python interpretor settings, and set it again in eclipse - window preference - pydev -interpreter Python, refresh the pydev index

  • Project -> Properties -> PyDev -PYTHONPATH, all is empty. I then "add source folder"




回答2:


I had the same problem. Went to project properties > pydev - PYTHONPATH, then setting the source folder did it for me !



来源:https://stackoverflow.com/questions/11326522/pydev-code-analysis-missing

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