How can I make the PyDev editor selectively ignore errors?

前端 未结 4 1709
你的背包
你的背包 2021-02-06 22:43

I\'m using PyDev under Eclipse to write some Jython code. I\'ve got numerous instances where I need to do something like this:

import com.work.project.component         


        
4条回答
  •  时光说笑
    2021-02-06 23:23

    You can make the ignore like the other posts suggest, but the real problem is that Pydev cannot find that class... If you add a .jar that contains that class to your PYTHONPATH it should be able to resolve it (or if you have a Java project that has that class, you should be able to mark that project as a Pydev project and add its bin folder to the project PYTHONPATH -- in which case that class should be found too).

提交回复
热议问题