umpirsky / Twig-Gettext-Extractor

The Twig Gettext Extractor is Poedit friendly tool which extracts translations from twig templates.
MIT License
113 stars 32 forks source link

"error 0: the operation completed successfully." in Windows 10 #28

Closed Admicos closed 2 years ago

Admicos commented 8 years ago

Full Log:

21.10.2015 19:14:28: Execution of command 'twig-gettext-extractor --sort-output --force-po -o "C:\Users\ecber\AppData\Local\Temp\poeD296.tmp\4extracted.pot" --from-code=UTF-8  -L PHP --files  "template/category.twig" "template/createTopic.twig" "template/footer.twig" "template/header.twig" "template/include/userInput.twig" "template/index.twig" "template/login.twig" "template/register.twig" "template/topic.twig"' failed (error 0: the operation completed successfully.)
21.10.2015 19:14:28: Cannot execute program: twig-gettext-extractor --sort-output --force-po -o "C:\Users\ecber\AppData\Local\Temp\poeD296.tmp\4extracted.pot" --from-code=UTF-8  -L PHP --files  "template/category.twig" "template/createTopic.twig" "template/footer.twig" "template/header.twig" "template/include/userInput.twig" "template/index.twig" "template/login.twig" "template/register.twig" "template/topic.twig"

CMD Output of twig-gettext-extractor --sort-output --force-po -o "C:\Users\ecber\AppData\Local\Temp\poeD296.tmp\4extracted.pot" --from-code=UTF-8 -L PHP --files "template/category.twig" "template/createTopic.twig" "template/footer.twig" "template/header.twig" "template/include/userInput.twig" "template/index.twig" "template/login.twig" "template/register.twig" "template/topic.twig":

C:\wamp\www\ffaboard>twig-gettext-extractor --sort-output --force-po -o "C:\Users\ecber\AppData\Local\Temp\poeD296.tmp\4extracted.pot" --from-code=UTF-8  -L PHP --files  "template/category.twig" "template/createTopic.twig" "template/footer.twig" "template/header.twig" "template/include/userInput.twig" "template/index.twig" "template/login.twig" "template/register.twig" "template/topic.twig"
(null): cannot create output file "C:\Users\ecber\AppData\Local\Temp\poeD296.tmp\4extracted.pot": No such file or directory

Fatal error: Uncaught exception 'RuntimeException' with message 'Gettext command "xgettext --sort-output --force-po -o C:\Users\ecber\AppData\Local\Temp\poeD296.tmp\4extracted.pot --from-code=UTF-8 -L PHP /tmp/cache/5627ba21b194d/66/66b89dde8692aeb8b6fdffc85ffed57fcbe45728e6609ff694f2b54c944c3d62.php /tmp/cache/5627ba21b194d/cb/cb4e9d5e4e8bf765afed2e2ae1064af9f3a4bac1943c1d74978b270ce30d8421.php /tmp/cache/5627ba21b194d/85/855980fd2158fa783047aace1a12200aea7121bba4f99a116c7903dc9067dffc.php /tmp/cache/5627ba21b194d/bc/bcbaa94dad4445d3b581b89bc5e99b65173bd0d147d779ca39d85a6ef2c38316.php /tmp/cache/5627ba21b194d/06/064c614a0c72d6b8f3407dda5d4bdab1e303ef1d33f8028e1cfb2ed37c257e5d.php /tmp/cache/5627ba21b194d/f9/f9e98a74e6cfeb8ad6a194b5fdecf8cdc30447281aa60c5b42ff504ffc5082b4.php /tmp/cache/5627ba21b194d/eb/eb4439b1fc2393deaff1ea4b91945ea4872c347447ef356bfc53e5798f8e4ab5.php /tmp/cache/5627ba21b194d/c5/c5c847656631ebf7c08b1f5cc17aa2925e29e5d569d3003130556fde8c23e13e.php /tmp/cache/5627ba21b194d/5e/5e691755cb889b77823604296827 in C:\Users\ecber\AppData\Roaming\Composer\vendor\umpirsky\twig-gettext-extractor\Twig\Gettext\Extractor.php on line 79

RuntimeException: Gettext command "xgettext --sort-output --force-po -o C:\Users\ecber\AppData\Local\Temp\poeD296.tmp\4extracted.pot --from-code=UTF-8 -L PHP /tmp/cache/5627ba21b194d/66/66b89dde8692aeb8b6fdffc85ffed57fcbe45728e6609ff694f2b54c944c3d62.php /tmp/cache/5627ba21b194d/cb/cb4e9d5e4e8bf765afed2e2ae1064af9f3a4bac1943c1d74978b270ce30d8421.php /tmp/cache/5627ba21b194d/85/855980fd2158fa783047aace1a12200aea7121bba4f99a116c7903dc9067dffc.php /tmp/cache/5627ba21b194d/bc/bcbaa94dad4445d3b581b89bc5e99b65173bd0d147d779ca39d85a6ef2c38316.php /tmp/cache/5627ba21b194d/06/064c614a0c72d6b8f3407dda5d4bdab1e303ef1d33f8028e1cfb2ed37c257e5d.php /tmp/cache/5627ba21b194d/f9/f9e98a74e6cfeb8ad6a194b5fdecf8cdc30447281aa60c5b42ff504ffc5082b4.php /tmp/cache/5627ba21b194d/eb/eb4439b1fc2393deaff1ea4b91945ea4872c347447ef356bfc53e5798f8e4ab5.php /tmp/cache/5627ba21b194d/c5/c5c847656631ebf7c08b1f5cc17aa2925e29e5d569d3003130556fde8c23e13e.php /tmp/cache/5627ba21b194d/5e/5e691755cb889b778236042968277e2a9458e1584958ed0b63d2ce648d8c0efc.php" failed with error code 1 and output:  in C:\Users\ecber\AppData\Roaming\Composer\vendor\umpirsky\twig-gettext-extractor\Twig\Gettext\Extractor.php on line 79

Call Stack:
    0.0003     246424   1. {main}() C:\Users\ecber\AppData\Roaming\Composer\vendor\umpirsky\twig-gettext-extractor\twig-gettext-extractor:0
    0.4372    4801560   2. Twig\Gettext\Extractor->extract() C:\Users\ecber\AppData\Roaming\Composer\vendor\umpirsky\twig-gettext-extractor\twig-gettext-extractor:58
umpirsky commented 8 years ago

Hi @Admicos, thanks for reporting.

This issue is similar to https://github.com/umpirsky/Twig-Gettext-Extractor/issues/13#issuecomment-62412812 and https://github.com/umpirsky/Twig-Gettext-Extractor/issues/12.

Admicos commented 8 years ago

I actually don't think this is an issue since i could use this utility fine before formatting. And it says "The operation completed successfully". So why does Poedit or this think that it is an error?

umpirsky commented 8 years ago

@Admicos Sorry, I didn't understand your last comment. Can you try to explain your question better?