You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.
In package.json if we remove options: --last-translator 'Test Plugin <info@testplugin.com>' & --team 'Test Plugin <info@testplugin.com>'
Script without the two options above will run with no errors. "translate": "wp-pot --src '**/**/**/*.php' --dest-file 'languages/test-plugin.pot' --package 'test-plugin' --domain 'test-plugin' --bug-report 'testplugin.com'"
A deeper dive showed that email in translate options is causing the error. Without <email@test-plugin.com> in --team & last-translator options script will be executed.
Describe the bug
package.json
has this script:"translate": "wp-pot --src '**/**/**/*.php' --dest-file 'languages/test-plugin.pot' --package 'test-plugin' --domain 'test-plugin' --last-translator 'Test Plugin <info@testplugin.com>' --team 'Test Plugin <info@testplugin.com>' --bug-report 'testplugin.com'"
When i run yarn translate i get the following error:
yarn run v1.22.19
$ wp-pot --src '**/**/**/*.php' --dest-file 'languages/test-plugin.pot' --package 'test-plugin' --domain 'test-plugin' --last-translator 'Test Plugin <info@testplugin.com>' --team 'Test Plugin <info@testplugin.com>' --bug-report 'testplugin.com'
The system cannot find the file specified.
error Command failed with exit code 1.
To Reproduce
run
yarn translate
(wp-pot)This will throw the following error:
The system cannot find the file specified.
error Command failed with exit code 1.
Module versions
└─┬ wp-pot-cli@1.5.0
└─┬ wp-pot@1.10.2
└── php-parser@3.1.2
Additional context
What can cause this issue, can't find anything related to it.
The text was updated successfully, but these errors were encountered: