0

问题

我对在 Windows 7 Home Premium x64 上运行的 SpringSource Tool Suite 2.9.1 Release 和 Subversive 插件有一个奇怪的问题。我正在尝试从 SVN 存储库中签出一个 android 项目。

这就是我正在做的事情:

  1. File > Import > SVN > Project From SVN
  2. 我填写存储库的路径并检查 HEAD 修订
  3. 我点击Finish
  4. 项目已找到,默认选项为Check out as a project with the name specified. 我不理会名称 将“深度”字段设置为Recursively并再次选择 HEAD 修订版。
  5. 我点击Finish
  6. 一个进度条会出现一秒钟,只是为了显示一条错误消息:

    Checkout operation for 'https://(.....)/Android' failed.
    svn: Cannot create new file 'C:\workspace-sts-2.9.1.RELEASE\AppName \.svn\lock': System can not find the path specified 
    

当我重试并按照 1 到 6 的步骤操作时,会出现另一个对话框。它说:

This project already exists in the workspace 
or there is a data folder in the checkout destination.

它允许我选择要覆盖的文件夹。当我这样做时,会显示类似但不同的错误消息。它说:

Checkout operation for 'https://(...)/Android' failed.
0x0000000f: The folder 'C:\workspace-sts-2.9.1.RELEASE\AppName \.svn' is locked by some external process. Please unlock the folder and try to check out the project again.

我试过的

首先,我打开 SVN Lock 视图查看是否有任何由 IDE 创建的锁。没有。

我重新启动计算机,希望它能解决任何应用程序锁定文件的问题,但似乎并非如此。

之后,我在不同的位置创建了一个新的工作区,并尝试在其中签出项目。结果是一样的。

然后,我尝试更改 SVN Kit 的版本。情况持续存在:

  1. SVN 套件 1.2.3
  2. SVN 套件 1.3.5
  3. 本机 Java HL 1.5.4
  4. 本机 Java HL 1.6.12

我认为更改工作区目录的权限值得一试。它也没有成功。

最后,我使用 Tortoise SVN 在不同的位置签出项目并将其导入我的工作区。我可以运行它(尽管似乎缺少一些构建路径设置)但这不是解决方案。我无法想象与几个无法在我的 IDE 中提交/更新/查看历史记录/解决冲突的人同时处理该项目。

有人建议我安装一个单独的 eclipse 版本,它有自己的工具集和单独的这个应用程序的不同工作区,但这似乎不是一个好主意。我想把它全部保存在一个 IDE 中。我也更愿意避免重新安装整个东西,因为我不想从头开始配置所有其他工具(主要是 spring 和 android 相关的)。

有人见过这样的情况吗?我怎样才能让它工作?

4

2 回答 2

0

It's uncear to me whether this is a subversive problem or an SVN problem. I would try checking out from the command line (you must install SVN command line tools to do this, but I'd recommend having the tools around as a backup anyway).

Checkout from the command line and then import into STS using File -> Import -> Existing projects into workspace. Once in the workspace, you can select the project -> Team -> Share project to get svn support on it.

于 2012-07-02T15:18:37.857 回答
0

重命名项目并再次签出,这一定是一个问题,你试图在包资源管理器中签出已经存在的同名项目

于 2015-08-20T17:45:03.077 回答