.p4config does not work
I have multiple workspaces and have changed the configuration to "Use environment values" to use .p4config, but I can't get a good connection.
Do I have to set P4PORT, P4CLIENT, P4USER, etc. in p4 set for this to work?
If so, I can't switch between multiple workspaces.
Or is there something wrong with the way .p4config is written?
https://pleiades.io/help/rider/Using_Multiple_Perforce_Depots_with_P4CONFIG.html
The format is exactly as in the sample in the link here, but I wonder if it's an encoding issue?
The picture below shows P4USER, P4PASSWORD, P4CHARSET, P4IGNORE, P4CONFIG already set in p4 set and
intentionally removed from p4 set to read P4PORT, P4CLIENT from .p4config
Please sign in to leave a comment.
Hello Arata,
Thank you for contacting Rider support.
I am sorry to know that you encounter such difficulties.
First, I suggest ensuring that the .p4config is located either under the Workspace root folder (
path/to/Workspace/.p4config
) nor under the project root folder (/path/to/Workspace/Project/.p4config
)Second, I suggest verifying the full file name. Is it exactly .p4config or a .p4config.txt (the file extension might be not visible by default). If the file is actually named as
.p4config.txt
, you can to either tryp4 set p4config=.p4config.txt
nor removing the.txt
extension from the filename.Third, ensure there is an entry on the Settings | Version Control | Directory Mappings settings page.
If nothing of that helps, we would appreciate it if you could share Rider logs with us:
#org.jetbrains.idea.perforce
to the textbox opened → press Save;Have a nice day!
Hi Dmitry,
Thank you for your reply.
The check you gave me didn't have the problem.
I was looking into uploading the logs and found that Unreal Engine was also having the same problem so I searched the Dev Community for posts about a similar issue.
I found out from the post that the problem was on the P4V side,
and the problem was resolved.
The following steps were necessary on the P4V side, although this is a simplified explanation
Thank you for keeping me updated. I am glad to hear that a solution was found.
Should you have any other questions or difficulties in the future, do not hesitate to contact support.
Have a nice day!