Description

Using the GameplayTags module in a code project created with the binary version of the Engine results in a build failure in Visual Studio. The following error is shown:

1>  D:/Epic Games/4.7/Engine/Source/Runtime/AIModule/Classes/BehaviorTree/Decorators/BTDecorator_BlueprintBase.h(217) : Unparsed class 'TemporaryUHTHeader_GameplayTagContainer' found while validating DependsOn entries for 'BTDecorator_CheckGameplayTagsOnActor'
1>Error : Failed to generate code for TestGameplayTagsEditor - error code: OtherCompilationError (2)

The same project will build fine when using a version of the Engine built from source code.

Steps to Reproduce
  1. Create a new code project using the Third Person template, no starter content.
    • The project must be created using a binary version of the Engine.
  2. Close the Editor if it opened.
  3. In the project's Build.cs file, add the GameplayTags module to the public dependency module names.
    • PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "GameplayTags" });
  4. Right-click on the project in Visual Studio and select Rebuild.

RESULT:
The build will fail with the error:

1>  D:/Epic Games/4.7/Engine/Source/Runtime/AIModule/Classes/BehaviorTree/Decorators/BTDecorator_BlueprintBase.h(217) : Unparsed class 'TemporaryUHTHeader_GameplayTagContainer' found while validating DependsOn entries for 'BTDecorator_CheckGameplayTagsOnActor'
1>Error : Failed to generate code for TestGameplayTagsEditor - error code: OtherCompilationError (2)

EXPECTED:
The build completes successfully.

WORKAROUND:
This appears to work fine in versions of the Engine that are built from source code.

Have Comments or More Details?

Head over to the existingAnswerHub thread and let us know what's up.

0
Login to Vote

Fixed
ComponentCore
Affects Versions4.7.3
Target Fix4.9
Fix Commit2562196
CreatedMar 27, 2015
ResolvedMay 22, 2015
UpdatedFeb 5, 2017