Reputation: 11
p4 where target
works well.
It tells me right location of a target file.
But p4 edit target' says 'target - file(s) not on client.
How can I fix this problem?
=================================================================
E:\p4\jungho-ahn_DESKTOP_6180\project\src>p4 where manager.h
//depot/project/src/manager.h //jungho-ahn_DESKTOP_6180/project/src/manager.h e:\p4\jungho-ahn_DESKTOP_6180\project\src\manager.h
e:\p4\jungho-ahn_DESKTOP_6180\project\src>p4 edit manager.h
manager.h - file(s) not on client.
====================================================================
update : 12/5/2016
E:\p4\jungho-ahn_DESKTOP_6180\project\src>p4 where manager.h
//depot/project/src/manager.h //jungho-ahn_DESKTOP_6180/project/src/manager.h e:\p4\jungho-ahn_DESKTOP_6180\project\src\manager.h
e:\p4\jungho-ahn_DESKTOP_6180\project\src>p4 sync manager.h
manager.h - no such file(s).
====================================================================
update : 12/6/2016
E:\p4\jungho-ahn_DESKTOP_6180\project\src>p4 where manager.h
//depot/project/src/manager.h //jungho-ahn_DESKTOP_6180/project/src/manager.h e:\p4\jungho-ahn_DESKTOP_6180\project\src\manager.h
E:\p4\jungho-ahn_DESKTOP_6180\project\src>dir e:\p4\jungho-ahn_DESKTOP_6180\project\src\manager.h
Volume in drive E is SSD
Volume Serial Number is CCFE-A2E3
Directory of E:\p4\jungho-ahn_DESKTOP_6180\project\src
2016-12-05 PM 02:02 36,052 manager.h
1 File(s) 36,052 bytes
0 Dir(s) 403,746,885,632 bytes free
There is the file and I can Check Out on p4v.
Upvotes: 1
Views: 570
Reputation: 71517
The error "file(s) not on client" suggests that the file has not been synced to your client. Try:
p4 sync manager.h
p4 edit manager.h
Note that the file might fail to sync for reasons that have nothing to do with your client view -- if the sync command fails it should give you an error message that tells you why this file can't be synced to your client.
For example, if p4 sync
says no such file(s)
it means that the file is either nonexistent or deleted. (You can run p4 files manager.h
to see if the file exists and what its head action is.)
Upvotes: 3
Reputation: 1
I too was facing this issue. p4 set
displayed everything right. Even p4 where
was fine.
However p4 where <target-file>
gave out the complete mapping for the target file. Which helped in understanding that //depot/my-repo...
was missing a slash in my view.
So I changed it to //depot/my-repo/...
and did a p4 sync
. All files got refreshed.
Now p4 edit
works without any issue.
Upvotes: 0
Reputation: 2528
Be sure the File location is mapped in your connection settings.
Use the full depot path. //depot/project/src/manager.h
p4 edit //depot/project/src/manager.h
or p4 edit "//depot/project/src/manager.h"
Upvotes: 0