Just updated my Engine to 4.20 (from source) and my VS2017 Projectfiles (regenerated) are missing the Include Path for the *.generated.h files. It still builds, but IntelliSense can’t finde the headers. Adding the path by hand fixes it, but this isn’t a real solution. Does anybody know, what in code I have to change, so the include will be added?
edit:
As workaround:
Right-click the Project->Properties->NMake->IntelliSense->Include Search Path, and there you just need to add: ..\Build\Win64\UE4Editor\Inc\$(ProjectName)
edit2
Update: also the Engine Project doesn’t seem to have those IncludePaths for their generated files, so my guess it, that this is the effect of a change to the UnrealBuildTool
Eh its $(SolutionDir)Intermediate\Build\Win64\UE4Editor\Inc\NameOfYourProject
In an older Project, I didn’t regenerated it was written as …\Build\Win64\UE4Editor\Inc\NameOfYourProject
Both should work (since they are the same^^)
And for the How: Rightclick the Project->Properties->NMake->IntelliSense->Include Search Path, and there you just need to add it.
Same problem here, but project cant find ENGINE generated header files, like assetdata.generated.h and so on.
Couldn’t figure out how to add them by hand…
Except that things compiles and work.
Ah, now I got it. They are located at different places, so you have to add all those Paths to your included paths. Why do you need them to be recognized by intellisense? Do you actually modify Engine Sources?
I didn’t modify engine files, just convert project from 4.19 to 4.20.
Even in fresh 4.19 project with one cpp file and no added code, after convert to 4.20 intellisense show tons of errors about generated.h files
then its like I said, you will have to add all include paths for those files. Or you will have to Ignore those errors until a fix comes up^^ Or someone figured out what has to be reverted, so those will be added by GenerateProjectFiles.
We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.
Well that the rootpath may vary is obvious and wasn’t my intention for the replay But your UE Project name seems to be just “UE4” and mine (or the one which is given, when building from source) is “UE4Editor” so I have a different Subfolder from “Win64” so people need to check what paths they need.
Ok, little Update, this feature of adding generated files to the include path was removed from the UnrealBuildTool, found the places in code, trying to revert the behavior…
yeah, will do, Its hard to get into the Project, so it can take a while … ^^
edit
hm don’t think that I will make it in next days. Takes too long, without deeper knowledge about the hole system, like “where comes the data from”. Unluckily I don’t have the time to take a rly deep look … hopefully this will get fixed by someone already familiar the code^^
Ok, here is my current workaround. The following python script should grab all directories we need:
To Add those easy, go to Your gameProject\Intermediate\ProjectFiles\YourProject.vcxproj and add the resulting string. You can also try to add them via VS, but for me it didn’t copied all paths oO
editupdate this script will now automatically find the needed Includes paths and will add them to your Project. You will just need to save this code to a Python (3.6) Script, located in your GameProjects folder, next to the *sln file
edit fixed a rare bug in the script + moved the code to pastebin for simpler copy:
https:///Vvu3WcJh