Intellisense thinks UUserWidget is missing

I’m having no problems compiling, and I’ve been able to reduce my intellisense errors down to ONLY the one shown in the picture, but I can’t seem to get it to go away. I’ve manually adjusted my vcxproj file to include $(Ue4Install)\Engine\Source\Runtime\UMG\Private\Blueprint folder (build was working before I did this), I’ve added the UMG module to my build.cs file, but I still continue seeing the following error:


Any help would be greatly appreciated!

Intellisense in c++? Nooooo use Visual assist, http://www.wholetomato.com/ it works 100% better than Visual intelli-no-sense.

Thanks Pierdesk, but working around my problem with yet another extension isn’t actually resolving the issue.

Hello, AndyM84

Please note, that IntelliSense can provide false-positive errors of this kind. If your project is compiling, it is most likely that there is nothing to worry about.

Hope this helped!
Cheers!

Thanks. This only started after I changed my project file to use a macro for the UE4 installation path, so I am thinking that the problem lies with this somehow. I can’t really get rid of the macro, however, because it’s how I’m able to work with other team members without requiring that we all install UE4 to the same location.

Hello, i had the same issue, try to regenerate the solution files from the .uproject.

Will that rebuild the files without my macros?

The safe way would be to copy the project folder and regenerate the files.

So each team member would have to do this for their own installations? Is there a better way to get around people installing UE4 to different folders?

Could you please tell me if you have considered using SVN for collaborating?

We are using Git currently, and we have a number of C++ files in the project that are not managed by UE4, so it’s necessary for us to be able to save our vcxproj files to help each other work with said files. We have been using a .props file like the following:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ImportGroup Label="PropertySheets" />
  <PropertyGroup Label="UserMacros">
    <Ue4Install>C:\Program Files\Epic Games\4.7</Ue4Install>
  </PropertyGroup>
  <PropertyGroup />
  <ItemDefinitionGroup />
  <ItemGroup>
    <BuildMacro Include="Ue4Install">
      <Value>$(Ue4Install)</Value>
      <EnvironmentVariable>true</EnvironmentVariable>
    </BuildMacro>
  </ItemGroup>
</Project>

This allowed us to go through and modify our vcxproj files to use $(Ue4Install) in place of the relative paths that UE4 tries to use when it generates project files.

This worked for me. The project was compiling fine but types like UTexture2D was not showing up in intellesense.

I closed everything, opened the unreal project folder in windows explorer and right clicked on the .uproject file and chose “Generate Visual Studio Project Files”

After that I opened the solution and intellisense was working.