wp-cli / extension-command

Manages plugins and themes, including installs, activations, and updates.
MIT License
90 stars 79 forks source link

`wp plugin status wp-redis` Couldn't find plugin-status.mustache #433

Closed szepeviktor closed 3 months ago

szepeviktor commented 3 months ago

Bug Report

Describe the current, buggy behavior

WP-CLI 2.10.0

$ wp plugin status wp-redis
Error: Couldn't find plugin-status.mustache

https://github.com/wp-cli/extension-command/blob/2a6f985a303032cd3ee0f37bfbf8e08420fa47ae/src/Plugin_Command.php#L227

Describe what you would expect as the correct outcome

No error.

szepeviktor commented 3 months ago

same for

https://github.com/wp-cli/extension-command/blob/2a6f985a303032cd3ee0f37bfbf8e08420fa47ae/src/Theme_Command.php#L186

swissspidy commented 3 months ago

I believe we're tracking this in https://github.com/wp-cli/wp-cli/issues/5907 already

The latest update is this one from @schlessera:

I don't think this approach is ideal. It is still very hacky and it has issues with multibyte strings in filesystems.

I think this needs to be solved using php.net/manual/en/phar.running.php in the correct way. I'll have a stab at it...

szepeviktor commented 3 months ago

Thank you, Pascal.