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

Proposed changes #21

Merged
merged 1 commit into from
Feb 9, 2024
Merged

Proposed changes #21

merged 1 commit into from
Feb 9, 2024

Conversation

Toutouwai
Copy link
Contributor

Hi Adrian,

Earlier today I was experiencing the inconsistencies with the PW FileCompiler but it's working consistently for me now. I've tested on a couple of installations, updating the module from a previous installed version. So it's difficult for me to debug the earlier issue now.

See if it's working reliably for you now after applying these changes. If it's still inconsistent then you could investigate this section of the compile method: https://github.com/processwire/processwire/blob/0a926b58fae019c8ed045e4aeabbe25d41bd83d8/wire/core/FileCompiler.php#L370-L387
If there is an issue I think this is where it lies. If you confirm that it's the cache causing the normal compilation to be skipped it might be possible to clear the relevant cache in the module upgrade method.

The other changes in this commit relate to backslashes in Windows paths. $config->paths converts the backslashes but __DIR__ doesn't so best to use $config->paths throughout seeing as you are doing string comparisons on the paths in places. This was the cause of the undefined index issue I mentioned previously.

@Toutouwai
Copy link
Contributor Author

There might be one or two tabs in there that need converting with spaces to fit your code style.

@adrianbj adrianbj merged commit 116a94d into adrianbj:namespaced-version Feb 9, 2024
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 this pull request may close these issues.

2 participants