dropins-catalog 中找不到插件
什么可能导致 Eclipse 忽略 dropins 目录中的插件?
我基于 Eclipse 向导创建了一个虚拟插件,并将其导出到一个 jar 中。当将其放入新安装的 Eclipse 的 drop-ins 目录中时,它工作得很好。
当我在自定义 Eclipse 安装上执行相同的操作时,它不起作用。该插件甚至没有显示在插件注册表视图中。没有错误消息或类似的东西。
我尝试过:
- 使用 -clean
- 运行 使用 -clean -consoleLog 运行,但没有打印任何错误
- 使用 -console 启动,并检查是否使用命令 ss 看到插件,没有运气。
- 使用 -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:\Program\Eclipse\eclipse3.6\dropins\ 运行
- 将 eclipse 目录的名称从 eclipse3.6 更改为 eclipse,以防我遇到Eclipse bug 的变体
- 这不是由于依赖性问题(例如这个问题),因为甚至没有找到插件
- 更新将 eclipse.ini 从工作 Eclipse 安装复制到自定义安装,结果相同;没有找到该插件。所以问题不在 ini 文件中
- 更新 认为问题可能是某些权限问题,因为我的用户不是自定义安装的所有者。因此,我复制了自定义安装的整个目录,以确保我是拥有完全权限的所有者。没有变化
- 更新 从新工作区开始没有任何区别
是否可以定义 Eclipse 应该忽略 dropins 目录?如何?
Eclipse 的自定义版本定义了很多变量,但似乎与 p2 或 dropins 的行为无关。
What could cause Eclipse to ignore plugins in the dropins catalog?
I've created a dummyplugin based on the Eclipse wizard, exported it to a jar. When dropping it into the drop-ins catalog of a fresh Eclipse installation, it works fine.
When I do the same thing but on a custom Eclipse installation, it doesn't work. The plugin doesn't even show up in the plugin registry view. No error messages or anything like that.
I've tried:
- Running with -clean
- Running with -clean -consoleLog but no errors were printed
- Starting up with -console, and checking if the plugin is seen with the command ss, no luck.
- Running with -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:\Program\Eclipse\eclipse3.6\dropins\
- Changing name of the eclipse catalog from eclipse3.6 to eclipse, in case I had run into a variation of an Eclipse bug
- It's not due to dependency issues (like this question), since the plugin isn't even found
- Update Copied the eclipse.ini from the working eclipse installation to the custom one, with the same result; The plugin wasn't found. So the issue isn't in the ini file
- Update Thought the issue might be some rights issue, since I my user wasn't the owner of the custom installation. So I made a copy of the entire dir of the custom installation to make sure I was the owner with full rights. No change
- Update Starting with a new workspace doesn't make any difference
Is it possible to define that Eclipse should ignore the dropins catalog? How?
The custom version of Eclipse defines a lot of variables, but nothing that seems related to p2 or the behaviour of dropins.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
dropins/ 文件夹是尽力而为、完全可选、默默失败的遗留遗留物。正如您所发现的,诊断方面并不重要。
如果您使用director 将捆绑包安装到您的自定义Eclipse 中,至少您将能够收到一条错误消息,告诉您问题所在。
我建议使用一些最小的 p2 元数据导出您的 jar。
然后你使用类似的东西:
如果 p2 找不到某些依赖项,它应该输出它可能生成的令人困惑的错误消息。
The dropins/ folder is a best effort, totally optional, silently failing legacy leftover. Not big on the diagnostics, as you've found.
If you use the director to install your bundle into your custom eclipse, at least you'll be able to get an error message that will tell you what the problem is.
I'd suggest exporting your jar with some minimal p2 metadata.
Then you use something like:
If p2 can't find some dependency, it should spew out the confusing error messages it can generate.
嗨@Fredrick,我制作了自己的插件,并以这种方式添加到我的 Eclipse 中:
将插件导出为可部署插件和片段。
(右键单击插件项目-导出-插件开发-可部署插件和片段)
这将生成一个 .jar 文件,您必须将该文件复制到 \eclipse\plugins
重新启动 eclipse。重新
我想说就这些了。
Hi @Fredrick I've made my own plugin and I've added to my eclipse in this way:
Export the plugin as Deployable plug-ins and fragements.
(Right click on the plugin project - Export - Plugin Development - Deployable plug-ins and fragements)
That will generate a .jar file that file you have to copied into \eclipse\plugins
Restart eclipse.
I'd say that will be all.