Closed GaryJones closed 10 years ago
Hmm, is your callback returning the pot
variable? Otherwise, it sounds it could be a race condition or the process may be returning an exit code that isn't 0
: https://github.com/blazersix/grunt-wp-i18n/blob/develop/tasks/makepot.js#L112
Sorry, forgot to clarify this - after 2 hours I realized that somehow I'd got a version from over 2 months ago (even though I only started this project a week ago) that didn't yet have the callback feature. Did an npm update
which grabbed the latest version and it all worked first time.
No problem, glad you got it worked out :+1:
Similar to the unit test for plugins with custom headers.
I've got an issue where the processPot callback isn't being called for a theme I'm trying to generate a .pot for. The .pot uses the default headers. Wrote this unit test to try and debug an issue, but it passes fine, so I'm not sure what the problem is with my project.