出现客户端未知错误时如何在 Perforce P4 中设置客户端根目录 [英] How to set client root in Perforce P4 when client unknown error comes

查看:55
本文介绍了出现客户端未知错误时如何在 Perforce P4 中设置客户端根目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

突然,当我在终端中运行 p4 info 时,我注意到客户端根目录没有设置(不知道为什么它突然被取消设置.以下是显示客户端未知"的输出" 代替客户端 root.我可以通过什么命令设置相同的命令?我试过 p4 clientp4 set 但可能是,语法错误.

Suddenly, when I run p4 info in terminal, I notice that the client root is not set (not sure why it got unset all of a sudden. Following is the output which shows "client unknown" in place of client root. What is the command through which I can set the same? I have tried p4 client and p4 set but may be, with wrong syntaxes.

BANL121b92746:Applications bagarwal2$ p4 info
User name: bagarwal2
Client name: BANL121b92746
Client host: BANL121b92746.local
Client unknown.
Current directory: /Applications

并且此客户端根目录的值是否与我的 P4V 客户端中 Connections->Edit Workspace 下设置的Workspace Root"相同.我的 P4V 客户端运行良好.当我的 Intellij IDEA 开始显示 P4 中的连接问题时,我发现 p4 info 存在此问题.在IDEA中测试连接时,下面是错误截图,与我在终端中执行p4 info时相同.

And is the value of this client root be the same as "Workspace Root" set in my P4V client under Connections->Edit Workspace . My P4V client is working perfectly. I found this problem with p4 info when my Intellij IDEA started showing connection problems in P4. On testing the connection in IDEA, below is the error screenshot, which is same as when I do p4 info in terminal.

关于我的 p4settings.txt 配置,以下是几个月前一直工作的配置:

Regarding my p4settings.txt config, below are the configs which were working for months till now:

P4HOST=<hidden hostname>:2500
P4CLIENT=bagarwal2_BANL121b92746_trunk
P4USER=bagarwal2
P4POST=<hidden hostname>:2500

我的 P4V 连接(一切正常)使用与上面提到的相同的详细信息/配置,但我仍然在终端和 Intellij IDEA 中发现了这个问题.

My P4V connection (which works all fine), uses the same details/config which are mentioned above, still I find this problem in terminal and hence in Intellij IDEA.

推荐答案

看起来你的 p4settings.txt 配置文件没有被使用;否则p4 info"返回的客户端名称将与配置文件中的 P4CLIENT 值匹配.运行:

It looks like your p4settings.txt config file isn't being used; otherwise the client name returned by "p4 info" would match the P4CLIENT value in the config file. Run:

p4 set P4CONFIG=p4settings.txt

并确保当您运行p4 info"时,您是从 ~/dev/trunk 下的目录中执行的.(您在问题中的p4 信息"输出将您当前的目录显示为/Applications,因此这可能会自行解释问题——只需执行cd ~/dev/trunk"并重试.)

and make sure that when you run "p4 info" you're doing it from a directory underneath ~/dev/trunk. (Your "p4 info" output in the question shows your current directory as /Applications, so that might explain the problem on its own -- just do "cd ~/dev/trunk" and try again.)

客户端未知"错误表明您的客户端规范可能已被删除(假设您连接到同一台服务器并使用您之前成功使用的相同客户端名称).如果发生这种情况,您可以通过运行以下命令创建一个具有相同名称的新:

The "client unknown" error suggests that maybe your client spec got deleted (this is assuming you're connecting to the same server and using the same client name you were successfully using before). If that's what happened you can create a new one with the same name by running:

p4 client

这篇关于出现客户端未知错误时如何在 Perforce P4 中设置客户端根目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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