Problem adding c++ to perforce project
When I try to add new code to my project running in a perforce workspace, I get the error
"Failed to add class NewClass. Failed to generate project files.".
I assume this is because of the write only default in perforce but I'm not really sure how to get around it. It does actually create the files though, but I assume it doesn't link up with UE and isn't usable.
I also tried asking here but it didn't help much.
You didn't happen to check in the "Intermediate" or "Saved" folders did you? If you did be sure to take remove them from the depot. Also none of the visual studio related files should be checked in either. (.sln, .sdf, etc) Also, sometimes files that aren't even in the depot can sometimes be made read only, so that could be it too, if thats the case you could manually untick the read only option for any files that aren't under source control. This should probably completely fix your issue.
Follow this question
Once you sign in you will be able to subscribe for any updates here