[4.7.1] Can't open source file

I updated to 4.7.1 and wanted to check some source files which are per default included in version 4.7.

However I get this error:

https://dl.dropboxusercontent.com/u/78559347/cantopensourcefile.jpg

I tried to rebuild the solution but no luck. Everything is marked in red.

Any hints?

Hey ,

did you regenerate solution and projects as well using GenerateProjectFiles.bat script?

Cheers,

Mikolaj

Hi Mikolaj,
thank you for your reply.
I had successfully rebuild all solutions (MyProject and UE4). However I am not sure want you mean with regenerating the solutions. Furthermore I couldn’t find the GenerateProjectFiles.bat file.

I had not downloaded the sourcefiles per github.

Hi ,

glad to hear you managed to rebuild it. GenerateProjectFiles.bat is relevant only for Github users who build both game and engine, so it’s not your case.

Take care and happy coding!

Mikolaj

Well thank you Mikolaj,

but the rebuilding of the project wasn’t the issue.

I was wondering why the ue source files are still marked red, why I get the error:“cannot open source file Engine/Console.h”.

Sorry if I am writing a bit ambiguous.

Red squiggly lines denote intellisense errors. This should disappear once VS finishes parsing everything and builds intellisense database. It may take a while. If you move text cursor over the include statement and press Ctrl+Shift+G, it should take you to requested file. If you get an error window after VS finished parsing then intellisense directories are set up incorrectly and we’ll need to investigate further.

  1. VS finished parsing the solution, but the errors are still visible.
  2. I tried to open a .h file with Crtl+Shift+G and got this error:

https://dl.dropboxusercontent.com/u/78559347/pathnotfound.jpg

Thanks for quick check. I’ll have to debug this then, I’ll let you know when I find out what the problem is.

Hey,

from what I checked, finding directories for intellisense and building works fine and I can’t reproduce your problem locally. I checked on 4.7.1.
Did you do anything specific in your setup?

Cheers,

Mikolaj

Thank you very much for your effort.

No I haven’t changed anything specific. I tried to reproduce the problem by creating another c++ template. Unfortunatly the issue is still there.

I noticed that the engine .h files are only. Is this normal? I tried to make the source ordner writeable but I guess the engine revert it back to only.

I guess I try to reinstall the editor later.

Anyways, thanks again for your help!

UE4 project did’t include source file at all. I do have this issue as well.

Hey nullptr_t-

Could you provide more information on what exactly is happening in your case?

Hi,

source files should be located in C:\Program Files\Epic Games\4.7\Engine\Source. Can you check whether Intellisense include search paths are properly set up? To do so:

  1. Right click on your project in Solution Explorer in Visual Studio and choose Properties.

  2. Go to Configuration Properties and choose NMake.

  3. See contents of IntelliSense → Include Search Path. It should contain the Source directory and lots of subdirectories.

Engine files are only by default, this is intentional.

Cheers,
Mikolaj