Perforce麻烦“文件不在客户端的根”错误信息 [英] Perforce troubles "file not under client's root" error message

查看:309
本文介绍了Perforce麻烦“文件不在客户端的根”错误信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过VS2010添加一个项目到perforce,但我不断得到这个错误'文件'不在客户端根下的项目中的所有文件。我似乎不明白这一点。



这里是我在做什么:



1)打开VS2010项目, / p>

2)我选择添加solotion到perforce(从文件>源代码管理>添加解决方案菜单)。



3)我选择一个新的工作区。它会显示工作空间的属性。根文件夹默认为c:\Users\My.Name。我将其更改为我的项目所在的文件夹。我也改变了视图,所以它指向depot \main\\\
ew_project。



似乎添加了项目,但是当我checkin文件,它只是不工作!对于所有'文件不在客户端根目录下的所有文件

$

$ p

并检查相应工作区的设置。在仪表板中显示错误:

  P4V在翻译位置时遇到问题c:\Users\user.Name\\ \\Documents\Code\My_Project到有效的工作空间位置。要使用此位置过滤,请将文件夹从工作区树拖动到工作区文件夹字段,或在工作区视图中包含软件仓库位置。 

有人可以给我任何指针为什么这只是不工作?



更新
我的工作空间映射为

 客户:omega 
所有者:User.Name
根:C:\Users\User.Name\Documents\Visual Studio 2010\Projects\Omega
LineEnd:local
View:
// depot / main / omega / ... // omega / ...


解决方案

如果在待处理标签打开时收到此错误,以下可能是您的问题!您可能没有看到整个过滤器(即,某些过滤器可能不在视图中)。将鼠标悬停在过滤器下方的窗口窗格边框上,直到光标更改为止,以便可以展开过滤窗口窗格。有一个过滤器,可以在那里说,匹配任何以下文件路径的文件:确保您没有选择的文件路径是不正确的。删除过滤器或选择当前depor或工作空间树选择。


I am adding a project to perforce via VS2010 but I keep getting this error 'file' not under client's root for all the files in the project. I can't seem to figure this out.

Here is what I am doing:

1) Open VS2010 project which is not in perforce yet.

2) I select add the solotion to perforce (from File > Source Control > Add Solution menu).

3) I select a new workspace. It brings up the properties of the workspace. The root folder is default to c:\Users\My.Name. I change this to the folder where my project is. I also change the view so it points to say depot\main\new_project.

It seems to have added the project but when I checkin file it just doesn't work! It give this error for all files that 'file not under client's root'.

I also go to perforce directly and check the settings of the corresponding workspace. In dashboard it display an error:

P4V is having trouble translating the location "c:\Users\user.Name\Documents\Code\My_Project" to a valid workspace location. To filter using this location, drag the folder from the workspace tree to the workspace folder field or include the depot location in your workspace view.

Can somebody give me any pointer why this just doesn't work?

Update My workspace mapping is this

Client:  omega
Owner:   User.Name
Root:    C:\Users\User.Name\Documents\Visual Studio 2010\Projects\Omega
LineEnd: local
View:
         //depot/main/omega/...     //omega/...

解决方案

If you get this error while the "Pending" Tab is open, the following could be your problem! You may not be seeing your entire filter (ie. some of the filter may be out of view). Mouse over your Window Pane Border underneath the filter until your cursor changes so that you can expand the Filter Window Pane. There is a filter that could be there that says, "Files that match any of the following file paths:" Make sure that you don't have a file path selected that is incorrect. Either remove the filter or choose "Current depor or workspace tree selection".

这篇关于Perforce麻烦“文件不在客户端的根”错误信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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