问题描述
我刚刚在Eclipse Mars.1中安装了最新的
我卸载了PyDev,现在项目展示可以。
任何人都知道根本原因?或者解决方法?
参考:
可能的相关链接:
相关的Eclipse错误:
相关的J2EE工具错误:
$ b $那么,由于原始的J2EE报告仍然是开放的:我不认为这可以在PyDev方面修复(虽然它使问题出现,应该是固定的J2EE方面)。作为一个注释,如果有人想看看,在PyDev方面,这发生在:,但是它使用正确的API(使用IPipelinedTreeContentProvider)完成,目前我确信这个问题不在于PyDev方面(尽管如果我被证明是错误的,我很乐意解决它)。
解决办法是禁用PyDev或者J2EE(取决于你使用更多的内容),就像在浏览器级别(即在浏览器中执行Ctrl + F10,自定义视图,内容,禁用PyDev Navigator内容或与J2EE相关的内容)。
I just installed the latest PyDev 4.4.0 plugin to my Eclipse Mars.1. I created a new Java project in a new workspace. And I add the project to a workingset
. In the Eclipse JavaEE perspective
, the project has duplicated show in the Project Explorer
view when I show workingset as the top level element:
I uninstalled PyDev, now the project show is OK.
Anyone knows the root cause? Or a workaround?
Ref:
A possibly related link: Projects appearing twice in working sets - eclipse
A related Eclipse bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=373031
A related J2EE tooling bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=351764
Well, given that the original report on J2EE is still open: https://bugs.eclipse.org/bugs/show_bug.cgi?id=351764 I don't think this can be fixed at the PyDev side (although it makes the problem appear, it should be fixed on the J2EE side).
As a note, if anyone wants to take a look, on the PyDev side, this happens at: https://github.com/fabioz/Pydev/blob/development/plugins/org.python.pydev/src_navigator/org/python/pydev/navigator/PythonModelProvider.java, but it's done with the proper APIs (using IPipelinedTreeContentProvider), and I'm currently convinced the issue doesn't lie on the PyDev side (although if I'm proved wrong, I'd be happy to fix it).
A workaround would be disabling PyDev or J2EE (depending on which kind of content you use more) just at the explorer level (i.e.: in the explorer do Ctrl+F10, Customize View, Content, disable the PyDev Navigator Content or the Content related to J2EE).
这篇关于PyDev导致Eclipse J2EE Perspecitve中的项目重复显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!