如何在 Eclipse Luna 中禁用 Tern 同步?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31534498/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to disable Tern synchronization in Eclipse Luna?
提问by Sergey
I use Eclipse Luna SP2 for Java EE for some JavaScript development. Every now and then (mostly on .js file open but also on some timer) I get the following popup error
我使用 Eclipse Luna SP2 for Java EE 进行一些 JavaScript 开发。时不时地(主要是打开 .js 文件,但也有一些计时器)我收到以下弹出错误
An internal error occurred during: "Synchronizing script resources with Tern server...".
loader constraint violation: loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader)
previously initiated loading for a different type with name "org/apache/http/HttpEntity"
I don't need Tern functionality and I would like to disable it or at least get rid of the popup error
我不需要 Tern 功能,我想禁用它或至少摆脱弹出错误
I googled about but could not find any relevant information. For the moment I tried to disable all validators and to change the .js editor but no luck by now.
我用谷歌搜索但找不到任何相关信息。目前我尝试禁用所有验证器并更改 .js 编辑器,但现在没有运气。
Any idea?
任何的想法?
采纳答案by Angelo
I think it's the same problem than issue 273The 0.8.0 didn't set the version of packages of org.apache.http
in the MANIFEST.MF
.
我认为它比同样的问题,问题2730.8.0没有设置的包的版本org.apache.http
中MANIFEST.MF
。
Please install 0.10.0 version.
回答by Kiran Nallam
Go to Properties of the project > JavaScript > Include Path > Source and remove the whole project. Click on "Add Folder" and give the required path for your JS. Like projectname/src/pages.Ionic 2
转到项目的属性 > JavaScript > 包含路径 > 源并删除整个项目。单击“添加文件夹”并为您的 JS 提供所需的路径。像 projectname/src/pages.Ionic 2