Hopefully this will help somebody with a similar issue to mine. Compile the the project to make sure everything is fine.Make sure to refresh the project in Unreal engine editor to make sure it picks up the changes.Added its path to includePath within c_cpp_properties.json.Searched for the file in visual studio code and located it in my project folder.Hover over the error which mentioned that a specific file could not be opened.vscode folder of the main folder you have opened in VSCode using File Open Folder. Navigated to BullCowCartridge.cpp and saw the include error still The includePath is an attribute in ccppsettings.json, which is in the.Replace MYPROJECT4_API with my project name ( BULLCOWGAME_API).Replaced the UE_PROJECT_NAME value with my project name ( BullCowGame).Copied the defines field and pasted it into my other project (BullCowGame).It will open Visual Studio Code with some Basic C++ Unreal Engine Code.Selected the Basic Code option and created the project.Specifically the errors were regarding the following message:Īfter some time I managed to resolve this issue with the following steps. Or right-click the Text Editor and then click Run Code in the editor context menu. I followed the lecture and initially added the Windows defines.txt to my c_cpp_properties.json which didn’t resolve the issue then I added the defines_mac.txt which resolved the auto-complete issues but didn’t resolve the Include errors that I was getting. Or press F1 and then select/type Run Code. I managed to solve the issue and decided to write a post about it to hopefully help somebody in the future to save some time for them or point them in the right direction. I was having issues in Visual Studio Code on my Linux (Ubuntu 20.04) with Include errors that were showing on my BullCowGame Unreal 4.22 project along with auto-complete not working properly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |