i fixed it by deleting source folder and the .sln file in a blink of aggression… now it repaired itself at launch and everything works as intended…
Deleting the .sln and Source folder did not work for me because it did not repair itself or let me regenerate the visual studio projects.
I was able to resolve this by making a new project and copying the Config, Content, and Plugins directories into the new project. I also copied the “Plugins” and “TargetPlatforms” settings from the .uproject file into the new one, and I copied a plugins .h and .cpp file into the source folder. The project launched successfully and I could compile from the editor. Everything seems to be working without having caused additional issues.
I was having this issue. I noticed when creating a new C++ class (from the editor) UE4 was by default pointing to some random internal engine folder and trying to put the files in there instead of the usual project/source/project folder, I just fixed that and the error went away.
Same was happening here.
Blueprints project, then trying to create a C++ class from Editor to convert to a cpp Project.
When trying to create an empty cpp class it didn’t work. The source folder didn’t appear in the Content Browser.
However when I tried to create an Actor cpp class from the Editor, finally it worked.
Now I have the C++ classes folder in the Editor, and everything is working properly.