# Error "can not open source file" occur in UE5 build in class

**URL:** <https://forums.unrealengine.com/t/error-can-not-open-source-file-occur-in-ue5-build-in-class/665681>\
**Category:** AI\
**Tags:** Environment-Query, unreal-engine, UE5-0, question\
**Created:** [October 9, 2022, 2:15pm UTC](https://forums.unrealengine.com/t/error-can-not-open-source-file-occur-in-ue5-build-in-class/665681 "2022-10-09T14:15:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnnieAngelia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnnieAngelia](https://forums.unrealengine.com/u/AnnieAngelia)\
**Post date:** [October 9, 2022, 2:15pm UTC](https://forums.unrealengine.com/t/error-can-not-open-source-file-occur-in-ue5-build-in-class/665681/1 "2022-10-09T14:15:08Z")

</div>

This is UE build in class Character, the soucre files are not found in Character.cpp file. when I try to open someone(CapsuleComponent.h) of them by F12, the system tell me that the file I want to open is not found.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/d/57d9328b74195010d9b41590904cef6a2eb195df.png)

But in the Character.h file, it seems everthing is fine. And I can open anyone of them by F12.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/3/2e3e00de0e3cbe82d0a043d03d1ee5c2b20036fa.png)  
And in custom class file (ALS\_Base\_Character.cpp), I also can open the CapsuleComponent.h by F12.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/e/3dedc91e9f9f7a4ccfa37155d8580e8c7abd5ff5.png)

so, it seem only can not open the source file in the .cpp file of UE build in class.
