Eclipse 3.5+:从用户主目录中的自动创建的.eclipse目录加载插件 [英] Eclipse 3.5+: Loading plug-ins from auto-created .eclipse directory inside user's home directory

查看:167
本文介绍了Eclipse 3.5+:从用户主目录中的自动创建的.eclipse目录加载插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为我的Linux机器下载了最新的Eclipse(3.6),并以root用户身份将tar.gz提取到/ opt / eclipse目录。我以普通用户身份启动Eclipse,并通过Eclipse成功安装了一些插件。插件在Eclipse的已安装的软件下可见,但它们似乎不起作用 - 没有任何新的视角,没有任何功能,没有任何功能。
然后我看到我的主文件夹,找到以下目录:



.eclipse / org.eclipse.platform_3.5.0_1473617060



该目录结构与/ opt / eclipse(安装Eclipse)中的目录结构类似,内部有4个目录(dropins,configuration,plugins,features)和一个文件(artifacts.xml)。我已经阅读了以下主题:
在除ECLIPSE_HOME之外的目录中安装Eclipse(3.4+)插件/ plugins
,并试图将.link文件放在opt / eclipse / dropins和/或opt / eclipse / links目录中,指向我的主目录中的配置目录,似乎在工作。



所以这些是重现问题的步骤,简而言之:


  1. 运行Eclipse作为不具有安装目录的权限的用户

  2. 通过Eclipse安装插件并重新启动(作为同一用户)

  3. Eclipse现在显示安装了这些插件。插件确实位于安装它们的用户的主目录(〜/ .eclipse /.../ plugins)中。



<问题:插件以某种方式被忽略。
我知道我可以通过将插件手动复制到安装目录(作为根),每次以非root用户身份安装插件(或者始终以root用户身份安装插件)时,可以快速解决问题。 ),但我对如何配置Eclipse读取用户自己的配置文件和Eclipse自动生成的插件的方式感兴趣。



任何想法如何强制Eclipse实际使用Eclipse安装的插件?

解决方案

这听起来像一个p2错误。您可以打开错误报告吗?


I have downloaded the latest Eclipse (3.6) for my Linux machine and extracted tar.gz to the /opt/eclipse directory as root. I started Eclipse as a normal user and successfully installed some plug-ins through Eclipse. The plug-ins are visible under "Installed software" from Eclipse, but they doesn't seem to be working - no new perspectives that should be there, no features, nothing. Then I looked inside my home folder and found the following directory:

.eclipse/org.eclipse.platform_3.5.0_1473617060

That directory structure looks similar to the one in the /opt/eclipse (where Eclipse is installed) and has 4 directories inside ("dropins", "configuration", "plugins", "features") and one file ("artifacts.xml"). The "plugins" folder really containts all the plug-ins I have installed.

I have already read the following topic: Installing Eclipse (3.4+) plugins in a directory other than ECLIPSE_HOME/plugins and tried to put .link file in "opt/eclipse/dropins" and/or "opt/eclipse/links" directory pointing to the configuration directory in my home directory, but that doesn't seem to be working.

So these are the steps to reproduce the problem, in short:

  1. Run Eclipse as some user which has no write permissions to installation dir
  2. Install plug-ins through Eclipse and restart it (as the same user)
  3. Eclipse now shows that those plug-ins are installed. The plugins are indeed located somewhere in the home directory of the user who installed them (~/.eclipse/.../plugins).

Problem: plug-ins are somehow ignored. I know that I can quick-fix the problem by copying the plugins manually to the installation directory (as a root) each time I install a plug-in as a non-root (or always install plug-ins as root), but I am interested in the way how can I configure Eclipse to read the user's own configuration file and plugins which have been automatically generated by Eclipse in the first place.

Any ideas how can I force Eclipse to actually use the plug-ins installed by Eclipse?

解决方案

This sounds like a p2 bug. Can you open a bug report?

这篇关于Eclipse 3.5+:从用户主目录中的自动创建的.eclipse目录加载插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆