File Not Found in Current Source File's Build System Paths

Hi,

I’ve created a new First Person C++ project and I’ve encountered an issue where the include files can’t be navigated to and are not in the source file Build system path. If I right-click an include file and say “open document (in this example) CoreMinimal.h” I get the following error:

I’ve tried adding the path that “CoreMinimal.h” is on to the projects Include Directories in it’s properties but with no success.

I’m not the most capable programmer so I’m hoping it’s some silly thing that I’ve overlooked but it is also not an issue I’ve ever encountered before and it is happening on every project even new ones which seems to suggest something in the Visual Studio environment.

Any insight would be appreciated.

Hi ruffhaus. It seems that something on Visual Studio is not setup correctly…
You do not need to add the path of any of source code of UE in the Include Directories in your project .cs file to be able to navigate with F12.
Some things you could try is:

Firstly you could try to clean the project (delete folders .vs, Binaries, DerivedDataCache, Intermediate, .sln etc.), and then right click on .uproject file and Generate Visual Studio project files. Watch the log there for any errors or warnings.

Secondly if this happens in every new project (or possibly existing) you create, I would suggest to check theSetting Up Visual Studio doc page

Setting Up Visual Studio
to be sure that you did not miss any steps.

Unfortunately I’d tried most of those things I also did a complete repair of VS and double checked the set up to no avail. It’s a bit of a head scratcher for me, I’ll keep digging I guess.

Sorry to hear you did not resolve the problem.
Did you check the intellisense settings? Why in your image above there are no colors in your code? Are you using the build in Visual Studio Intellisense? Some times that build-in feature does not work as well as other paid products. I personally use ReSharper C++ which is really great. (Visual Assist is also a great choice).
Anyway, check the settings in
Tools > Options > Text Editor > C/C++ > Advanced
Tools > Options > Text Editor > C/C++ > IntelliSense
and also
Tools > Options > Unreal Engine > General

Hope it helps..

Yeah, I had gone through all the intellisense settings in VS to no avail but it did seem to be an intellisense problem. I actually solved my problem by reinstalling 5.6 and then creating a fresh project, ported it to 5.7 and then all the projects in 5.7 seemed to refresh the intellisense properly and everything came good after that, even once I’d uninstalled 5.6 again.

Don’t know why that worked but don’t want to look a gift horse in the mouth so hopefully if someone else has the same issue they find this and it helps them too.