Eclipse TFS插件未检测到更改 [英] Eclipse TFS plugin not detecting changes

查看:145
本文介绍了Eclipse TFS插件未检测到更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse 版本:Neon.3版本(4.6.3),并已在其中安装TFS插件。

I am using Eclipse Version: Neon.3 Release (4.6.3), and have installed TFS plugin in it.

何时我正在对代码进行任何更改,更改的文件未显示在 TFVC待处理更改选项卡包含的更改中,所有更改的文件仅在重新启动eclipse或手动单击 Action-> Detect Local Changes

When I am making any changes to the code, the changed files not show up in Included Changes in TFVC Pending Changes Tab, all the changed files show up there only after restart of the eclipse or manually clicking on Action -> Detect Local Changes.

任何人都可以解决此问题,因此我不必重新启动Eclipse或或手动单击操作->检测本地更改,它会自动检测到。

Anybody have solution to this problem, so that I dont have to restart eclipse or or manually clicking on Action -> Detect Local Changes and it detects it automatically.

推荐答案

首先,请仔细检查您是使用服务器工作区还是本地工作区

First, please double check whether you are using server workspaces or local workspaces.



  • 服务器工作区中,TFS要求您通知服务器每次更改-检出文件,重命名,删除等。此
    允许TFS避免斯堪尼ng更改磁盘,这对于大型存储库是
    有益的。如果要使用Team Explorer Everywhere强制进行磁盘
    扫描,因为您可能在Eclipse之外进行了
    更改,则可以转到操作菜单,然后
    选择检测本地更改

  • 本地工作区中,每次查看待处理的更改状态时,TFS都会检查磁盘上的更改。因此,您需要执行的所有操作都是 tf status 或在 Pending Changes
    视图中单击刷新以查看对Eclipse外部文件的更改。 / li>
  • In a server workspace, TFS requires that you inform the server for every change - to check out a file, rename, delete, etc. This allows TFS to avoid scanning your disk for changes, which is beneficial for large repositories. If you want to force a disk scan with Team Explorer Everywhere, because you may have made some changes outside of Eclipse, you can go to the Actions menu and select Detect Local Changes.
  • In a local workspace, TFS will examine your disk for changes every time you look at the pending change status. So all you have to do is run tf status or click refresh in the Pending Changes View to see changes made to files outside of Eclipse.

根据您的描述,您似乎正在使用服务器工作区。如果这样,建议您切换到本地工作空间,在这种情况下,TFS会将文件的副本存储在一个隐藏的文件夹中,以便它始终知道TFS向您提供文件时工作空间的版本。

According to your description, seems you are using serverworkspaces. If so suggest you switch to a Local workspace, in which case TFS will store a copy of your file in a hidden folder, so that it always knows what your workspace version looked like when TFS served it to you.

如何判断您是在服务器工作区还是本地工作区并编辑工作区,请按照以下步骤操作:

As how to judge you are working on server workspace or local workspace and edit workspaces, follow below steps:


  1. Project Explorer Package Explorer 中,右键单击受版本控制的
    Eclipse项目,指向 Team
    ,然后单击管理工作区。

  1. In Project Explorer or Package Explorer, right-click an Eclipse project that is under version control, point to Team, and click Manage Workspaces.


  1. 工作区对话框框出现。它显示您Team Foundation Server工作区的列表。

  2. 然后选择要转换的工作区,单击编辑;然后单击确定。 编辑工作区对话框框将显示为屏幕快照下方的

  1. The Workspaces dialog box appears. It shows you the list of your Team Foundation Server workspaces.
  2. Then select the one you want to convert, click Edit; the Edit Workspace dialog box appears just as below screenshot:

注意:仅Team Foundation Server 2012及更高版本支持本地工作区。

Note: Local workspaces are only supported for Team Foundation Server 2012 and above.

这篇关于Eclipse TFS插件未检测到更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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