未找到 dropins-catalog 中的插件

2022-01-16 00:00:00 eclipse-plugin eclipse

什么可能导致 Eclipse 忽略 dropins 目录中的插件?

What could cause Eclipse to ignore plugins in the dropins catalog?

我已经基于 Eclipse 向导创建了一个虚拟插件,并将其导出到一个 jar 中.将其放入全新 Eclipse 安装的插件目录中时,它可以正常工作.

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.

当我在自定义 Eclipse 安装上做同样的事情时,它不起作用.该插件甚至不会出现在插件注册表视图中.没有错误消息或类似的东西.

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.

我试过了:

  • 使用 -clean 运行
  • 使用 -clean -consoleLog 运行,但未打印任何错误
  • 使用 -console 启动,并使用命令 ss 检查是否可以看到插件,但运气不好.
  • 使用 -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:ProgramEclipseeclipse3.6dropins 运行
  • 将 eclipse 目录的名称从 eclipse3.6 更改为 eclipse,以防我遇到 Eclipse 错误
  • 不是因为依赖问题(比如 这个问题),因为该插件甚至没有找到
  • 更新 将 eclipse.ini 从工作 eclipse 安装复制到自定义安装,结果相同;未找到该插件.所以问题不在ini文件中
  • 更新 认为问题可能是一些权利问题,因为我的用户不是自定义安装的所有者.因此,我制作了自定义安装的整个目录的副本,以确保我是拥有完整权限的所有者.没有变化
  • 更新从一个新的工作区开始没有任何区别
  • 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:ProgramEclipseeclipse3.6dropins
  • 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

是否可以定义 Eclipse 应该忽略 dropins 目录?怎么样?

Is it possible to define that Eclipse should ignore the dropins catalog? How?

Eclipse 的自定义版本定义了很多变量,但似乎与 p2 或 dropins 的行为无关.

The custom version of Eclipse defines a lot of variables, but nothing that seems related to p2 or the behaviour of dropins.

推荐答案

dropins/文件夹是尽最大努力,完全可选,默默地失败遗留遗留物.正如您所发现的那样,诊断并不重要.

The dropins/ folder is a best effort, totally optional, silently failing legacy leftover. Not big on the diagnostics, as you've found.

如果您使用 director 将您的 bundle 安装到您的自定义 eclipse 中,至少您将能够收到一条错误消息,告诉您问题所在.

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.

我建议使用一些最小的 p2 元数据导出您的 jar.

I'd suggest exporting your jar with some minimal p2 metadata.

然后你使用类似的东西:

Then you use something like:

eclipse/eclipse 
-application org.eclipse.equinox.p2.director 
-noSplash 
-repository 
file://$HOME/eclipseUpdate 
-installIUs 
org.dojotoolkit/1.6.1.v201105210659

如果 p2 找不到某些依赖项,它应该会吐出它可能生成的令人困惑的错误消息.

If p2 can't find some dependency, it should spew out the confusing error messages it can generate.

相关文章