SVN 无法在 Eclipse 中运行

发布于 2024-08-12 02:18:39 字数 1454 浏览 3 评论 0原文

有一天我在 Eclipse Help -> 中按下检查更新(我知道我永远不应该更新一个运行良好的软件。)

然后在我与 SVN 一起使用的项目中,“团队”的整个子菜单以及显示该内容的小图标有些文件没有提交,它们全部消失了。

我尝试了一切:

  • 安装历史记录 选项卡恢复
  • ,从 已安装软件 选项卡卸载,
  • Program Files 中的文件夹 eclipse 替换为从 eclipse 网站下载了一个新版本并尝试再次安装,
  • 在网上搜索了如何安装它

但是在上述情况下,如果我按 Ctrl+N 则没有 SVN 组; 如果我右键单击一个项目并选择 Team -> 共享项目,出现一个带有CVS的窗口,但没有SVN。 如果我选择文件 -> 导入 我在任何地方都找不到 SVN。

如果我转到帮助 -> 关于 Eclipse -> 安装详细信息 我在 2009 年 6 月 25 日 09:59:08 GMT+03:00(SVN 工作时)的安装历史记录中看到

Eclipse IDE for Java EE Developers  1.2.0.20090621-0820
Subclipse (Required)    1.6.2
Subversion JavaHL Native Library Adapter (Required) 1.6.3
SVNKit Library  1.3.0.5847

安装的软件 code> 选项卡 我现在已经安装了

Eclipse IDE for Java EE Developers  1.2.0.20090621-0820 epp.package.jee
Subclipse (Required)    1.6.5   org.tigris.subversion.subclipse.feature.group
Subversion JavaHL Native Library Adapter (Required) 1.6.6   org.tigris.subversion.clientadapter.javahl.feature.feature.group
SVNKit Library  1.3.1.6109  org.tmatesoft.svnkit.feature.group

如何使 SVN 工作?
eclipse 在哪里存储它的文件,因为当我用一个新的目录更改 eclipse 目录时,我的所有东西都在那里(我安装但没有成功的:SVN、Subversive、Subclipse、SVNKit,...)

One day I pressed in Eclipse Help -> Check for Updates (and I learnt that I should Never Ever update a software which works fine.)

Then in a project that I used with SVN the whole submenu of "Team" and the little icons that showed that some files weren't commited, they all dissapeared.

I tried everything:

  • revert from Instalation History tab
  • uninstall from Installed Software tab
  • replaced the folder eclipse in Program Files with a new one downloaded from eclipse website and tried to install again
  • searched how to install it on the net

But in none of the cases above if I press Ctrl+N There is no SVN group;
If i right click on a project and select Team -> Share project, a window with CVS appears, but no SVN.
If I choose File -> Import I can't find SVN anywhere.

If I go to Help -> About Eclipse -> Instalation details I see at Instalation History in 25.06.2009, 09:59:08 GMT+03:00 (when SVN worked)

Eclipse IDE for Java EE Developers  1.2.0.20090621-0820
Subclipse (Required)    1.6.2
Subversion JavaHL Native Library Adapter (Required) 1.6.3
SVNKit Library  1.3.0.5847

In the Installed Software tab I have now installed

Eclipse IDE for Java EE Developers  1.2.0.20090621-0820 epp.package.jee
Subclipse (Required)    1.6.5   org.tigris.subversion.subclipse.feature.group
Subversion JavaHL Native Library Adapter (Required) 1.6.6   org.tigris.subversion.clientadapter.javahl.feature.feature.group
SVNKit Library  1.3.1.6109  org.tmatesoft.svnkit.feature.group

How can I make SVN to work?
Where does eclipse store its files, because when I changed the eclipse directory with a new one all my stuff was there (the ones that I installed with no success: SVN, Subversive, Subclipse, SVNKit, ...)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

情痴 2024-08-19 02:18:39

Subversive 是我最喜欢的 Eclipse 中的 SVN 实现,因为它比其他实现更好,并且可以巧妙地集成到 UI 中。

我建议您按照以下步骤操作:

  1. 下载最新版本的 Eclipse(当前为 Galileo)并将其解压到您想要的安装位置
    • 在运行 Eclipse 之前,请确保删除(或重命名/重新定位)默认工作区(在 Windows 下,这是用户目录中的工作区
    • 使用 Eclipse 的软件安装程序安装 Subversive SVN Team Provider(按照 Eclipse 孵化网站的指示):
    • 选择帮助,然后安装新软件...
    • 创建新的下载位置并指定以下下载 URL:http://download.eclipse.org/releases/galileo
    • 找到协作,将其展开,然后选中Subversive SVN Team Provider(孵化)
    • 继续安装并接受 TOS
    • 重新启动 Eclipse 和 Subversive 会提示您选择 SVN 连接器。阅读您描述的症状,听起来您没有安装连接器,或者它没有与您的团队提供商进行通信。 Polarion 网站提供了选择最适合您的连接器的指南。

如果系统未提示您安装连接器,您始终可以从首选项屏幕进行安装:

Eclipse 中的 SVN 首选项

如果以上对你不起作用,看来你的工作空间没有清理干净。找到您的默认工作区,并尝试在没有任何项目的情况下让工作正常运行,然后再继续。

然后,您还可以尝试删除用户目录中的 .eclipse 目录。然后从第 3 步开始。

Subversive is my favorite SVN implementation in Eclipse because it works better than the others and it integrates neatly into the UI.

I suggest you follow these steps:

  1. Download the most recent version of Eclipse (currently Galileo) and extract it to your desired installation location
    • Prior to running Eclipse, make sure you delete (or rename/relocate) your default workspace (under Windows this is workspace in your user directory)
    • Install the Subversive SVN Team Provider (as instructed by the Eclipse incubation website) using Eclipse's software installer:
    • Choose Help, then Install New Software...
    • Create a new download location and specify the following download URL: http://download.eclipse.org/releases/galileo
    • Locate Collaboration, expand it, then check Subversive SVN Team Provider (Incubation)
    • Proceed through the installation and accept the TOS
    • Restart Eclipse and Subversive should prompt you to select a SVN Connector. Reading the symptoms you describe, it sounds like you don't have a connector installed, or it isn't communicating with your team provider. The Polarion website has a guide for choosing the connector best suited for you.

If you aren't prompted to install a connector, you can always do so from the preferences screen:

SVN preferences in Eclipse

If the above doesn't work for you, it seems that your workspace isn't cleaned out. Locate your default workspace and try getting things working without any projects before you continue.

You could then also try deleting the .eclipse directory in your user directory. And starting over from step 3.

爱要勇敢去追 2024-08-19 02:18:39

我遇到的问题是 svn 图标没有显示在包资源管理器中。

我的解决方案是删除工作区文件夹中的 .metadata 文件夹(这将重置所有工作区,包括首选项和存储库配置)

之后,所有图标都会出现。

The problem I had was that svn icons where not showing in the package explorer.

The solution for me was to delete the .metadata folder in the workspace folder (which will reset all your workspace including preferences and repository configurations)

After that all the icons appeared.

☆獨立☆ 2024-08-19 02:18:39

当 SVN 连接器无法连接 Eclipse 中的 SVN 存储库时,我遇到了同样的问题。

然后,我执行以下步骤:-

  • 右键单击​​ Eclipse 下的项目。
  • 前往团队 ->分享项目。

它正在工作:)

I had same issue when SVN connector was not able to connect SVN repository in Eclipse.

Then, I do the following step's :-

  • Right click on Project under Eclipse.
  • Go to Team -> share Project.

It's working :)

つ低調成傷 2024-08-19 02:18:39

我发现与安装插件相关的问题

Eclipse 使用本地 SVN 库,这些库是已安装插件的一部分。用于 SVN 支持的插件,无论是 SVNkit 还是 JavaHL。 Netbeans 使用独立安装的 SVN 库。

I found a problem related to installing plugins here. I also could not get the SVN stuff to show up in the preferences because of some bug with the software updater updating the Mylin plugins. You'll likely have to get your Eclipse installation straightened out first and you can do this by just using a new workspace. You don't have to blow away the .metadata folder if you point Eclipse temporarily at a new workspace folder. When the Eclipse installation is clean, you can start installing plugins again, but make sure to uncheck the box labeled Contact all update sites during install to find required software

Eclipse uses local SVN libraries that are part of an installed plugin for SVN support, be it SVNkit or JavaHL. Netbeans uses SVN libraries that are installed independently.

凉薄对峙 2024-08-19 02:18:39

我以前在 Eclipse 及其支持的各种 SVN 插件中也遇到过这种情况。由于某种原因,SVN 插件有时会失去 SVN 连接。最好的办法是简单地删除该项目并重新从 svn 中签出它。如果您有需要提交的更改,可以使用命令行。

您可能遇到的另一个问题是您的插件和存储库在版本号方面不同步。在使用为 svn 1.6.x 设计的插件和仍为 svn 1.4 或 1.5 的存储库之前,我遇到了问题。

I have had this happen before with Eclipse and the various SVN plugins that it supports. The SVN plugin, for some reason, sometimes looses the SVN connection. Your best bet is to simply delete the project and re-check it out of svn. If you have changes that need to be committed you can use the command line.

Another problem you may have is that your plugin and your repository are out of sync in terms of version numbers. I have had problems before using a plugin designed for svn 1.6.x and a repository that was still at svn 1.4 or 1.5.

大姐,你呐 2024-08-19 02:18:39

只需从 eclipse 中删除所有项目并再次重新导入所有项目即可。
它对我有用。
试试吧

Just delete all projects from eclipse and Re-Import the all projects again.
It is working for me.
Just try it

疑心病 2024-08-19 02:18:39

如果你想完全重新开始使用 Eclipse,你还需要删除你的工作空间(你第一次启动 Eclipse 时看到的路径)。只需重新安装 Eclipse 文件并指向相同的默认工作空间不会为您带来任何改变。

您最好的选择是删除 Eclipse 和您的工作区并重新开始,因为您在尝试解决最初的问题时可能无意中破坏了插件的其他部分。

If you want to completely start over with eclipse, you need to delete your workspace as well (the path you see when you first start eclipse). Just re-installing the eclipse files and pointing to the same default workspace will not change anything for you.

Your best bet is to remove eclipse and your workspace and start over because you probably inadvertently broke some other parts of the plug in while you were trying to fix your initial problem.

只涨不跌 2024-08-19 02:18:39

即使您按照所说安装了所有内容,Subversive 和 SVN Connector (svnkit 1.xx),在项目中您可能看不到 svn 工作。就我而言,我必须从工作区中删除该项目并再次导入它。然后它出现了。 (刷新、清理不起作用)。

Even if you install everything as it is said, Subversive and SVN Connector (svnkit 1.x.x), in the project you may not see svn working. In my case I had to remove the project from workspace and import it again. Then it appears. (Refresh, clean did not worked).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文