wp-cli / i18n-command

Provides internationalization tools for WordPress projects.
MIT License
96 stars 52 forks source link

Undefined method WP_CLI\I18n\MakePotCommand::get_file_data_from_string #340

Closed bilalmalkoc closed 1 year ago

bilalmalkoc commented 1 year ago

I got this error when trying to extract .pot file. When i delete i18n-command package it is working.

You said here, don't need to install this package because it is already in wp cli. But update-po command not registered in wp cli core. So i install i18n-command package to make it work. But in this time, make-pot command not working.

PHP Fatal error: Uncaught Error: Call to undefined method WP_CLI\I18n\MakePotCommand::get_file_data_from_string() in phar:///usr/local/bin/wp/vendor/wp-cli/i18n-command/src/IterableCodeExtractor.php:58

swissspidy commented 1 year ago

Duplicate of #336

Please try wp cli update --nightly