Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting “No match found for RegExp(<BIG_REGEX>) on file: path/to/source” on startup (M1 Mac) #17

Open
yggie opened this issue Jun 13, 2022 · 1 comment · May be fixed by #18
Open

Comments

@yggie
Copy link
Contributor

yggie commented Jun 13, 2022

I keep getting the above error on startup, with the extension suggesting I regenerate the project files. This did not help at all.

After digging into the code a bit, I found the issue was related to how the generated files are structured. For example, the definitions file is located in:

/Users/name/path/to/MyProject/Intermediate/Build/Mac/x86_64/UnrealEditor/Development/MyProject/Definitions.MyProject.h

But the regex cannot capture the above because it only expects a single directory between Build and UnrealEditor.

const REGEX_UE_EDITOR_GENERATED = /(?<!Engine)[\/|\\]Intermediate[\/|\\]Build[\/|\\]\w+[\/|\\](?:Unreal|UE4)Editor[\/|\\]Inc/gm

Managed to patch the extension locally and it worked, will post a PR with the fix

yggie added a commit to yggie/ue4-intellisense-fixes that referenced this issue Jun 13, 2022
Closes boocs#17

Fixes and refactors the regex used to detect the editor files
- Allows the regex to match up to 2 folders between the `Build` and
  the `UnrealEditor` folders. Previously it only supported 1
- Removes the `|` in the regex, this would have supported formats
  like Build|Mac|UnrealEditor which is likely unintentional
@boocs
Copy link
Owner

boocs commented Jun 15, 2022

Can you tell me the path where all your *.generated.h files are? They should be somewhere in the Intermediate/Build directory. They also can be in multiple directories from different configs you've used to Build your project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants