gpt4 book ai didi

visual-studio-2010 - Perforce 麻烦 "file not under client' s root”错误消息

转载 作者:行者123 更新时间:2023-12-04 01:32:34 27 4
gpt4 key购买 nike

我正在通过 VS2010 向 perforce 添加一个项目,但我不断收到此错误 'file' not under client's root对于项目中的所有文件。我似乎无法弄清楚这一点。

这是我在做什么:

1) 打开尚未生效的 VS2010 项目。

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

3)我选择了一个新的工作区。它调出工作区的属性。根文件夹默认为 c:\Users\My.Name。我将其更改为我的项目所在的文件夹。我还更改了 View ,使其指向 depot\main\new_project。

它似乎添加了该项目,但是当我 checkin 文件时它不起作用!它为 'file not under client's root' 的所有文件提供此错误.

我也是直接去perforce,查看对应workspace的设置。在仪表板中,它显示一个错误:

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.

有人可以给我任何指示为什么这不起作用吗?

更新
我的工作区映射是这样的
Client:  omega
Owner: User.Name
Root: C:\Users\User.Name\Documents\Visual Studio 2010\Projects\Omega
LineEnd: local
View:
//depot/main/omega/... //omega/...

最佳答案

如果您在“待处理”选项卡打开时收到此错误,则可能是以下问题!您可能看不到整个过滤器(即某些过滤器可能不在视野范围内)。将鼠标悬停在过滤器下方的窗口 Pane 边框上,直到光标发生变化,以便展开过滤器窗口 Pane 。有一个过滤器可能会显示“与以下任何文件路径匹配的文件:”确保您没有选择不正确的文件路径。要么移除过滤器,要么选择“Current depor or workspace tree selection”。

关于visual-studio-2010 - Perforce 麻烦 "file not under client' s root”错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12428521/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com