boocs / ue4-intellisense-fixes

Automatically fixes VSCode/Unreal Engine Intellisense Config bugs on startup
MIT License
162 stars 9 forks source link

[#17] Fixes the regex used to detect UE editor generated files #18

Open yggie opened 2 years ago

yggie commented 2 years ago

Closes https://github.com/boocs/ue4-intellisense-fixes/issues/17

Fixes and refactors the regex used to detect the editor files

boocs commented 2 years ago

That regex is trying to find the directory where all the *.generated.h files are in any response file it's given.

This directory is created when you Build with the 'Editor' suffix configuration. Build with ProjectNameEditor and 'Development' config and see if the *.generated.h files get created.

Do any response files contain this directory? If not Generate Project Files and check again.

boocs commented 2 years ago

Also on this regex I do skip the last ProjectName folder that the *.generated.h files are actually in. I just assume that if they have the partial path, then they have the correct full path.

Here's what the *.generated.h directory structure looks like on Windows for a UE5 project called CPPTest.

image

yggie commented 2 years ago

Hi @boocs, sorry for the late response, I got swept away by other things. This is the path I get for a Mac M1 for my project:

Screenshot 2022-06-22 at 12 04 00

The issue is that the platform + arch is organised as two subfolders (in this case Mac/x86_64/) whereas on Windows it is just Win64/. This change will update the regex to cover this case as well

boocs commented 2 years ago

I released 3.1.4.

Apologies, I forgot you had fixed it and didn't merge it like your other fix.

Thanks for the report/help!