1. 程式人生 > >windows 命令行報錯:file(s) not in client view

windows 命令行報錯:file(s) not in client view

min .com 連接 try hide nvi http 檢查 sync

今天在執行p4 sync命令時報錯:File(s) not in client view,查找後發現其實是未連接上p4服務器。需要重新設置P4PORT=服務器地址 即可解決(參考鏈接:https://perforce-user.perforce.narkive.com/0OHoquWw/p4-need-newbie-help-for-file-s-not-on-client)。

後來在另一臺電腦遇到問題: file(s) not in client view,也通過設置P4PORT解決。

  1)、如遇到如下問題:

    C:\Users\admin>p4 set P4PORT=<這裏是服務器地址>

    Perforce client warning:

        Warning: environment variable hides registry definition of P4PORT

    以上問題可按照如下方式解決:

      C:\Users\admin>set P4PORT=

      C:\Users\admin>p4 set P4PORT=<這裏是服務器地址>

      OK.

  2)、若遇到如下問題:

   C:\Users\admin>p4 sync

   Client ‘admin‘ unknow - use ‘client‘ command to create it.

   該問題的原因可能是P4PORT錯誤,也可進行檢查是否是P4PORT錯誤。

windows 命令行報錯:file(s) not in client view