Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include argument is ignored #186

Closed
ocean90 opened this issue Oct 19, 2019 · 7 comments · Fixed by #262
Closed

include argument is ignored #186

ocean90 opened this issue Oct 19, 2019 · 7 comments · Fixed by #262

Comments

@ocean90
Copy link
Contributor

ocean90 commented Oct 19, 2019

While debugging #185 I came across another issue which was working previously in 2.2.0.

wp i18n make-pot /wordpress/trunk /wp-pot/trunk/wordpress-continents-cities.pot --include=wp-admin/includes/continents-cities.php

This should only parse wp-admin/includes/continents-cities.php but now WP-CLI is parsing everything (which is not excluded by the default rules).

The same happens for:

wp i18n make-pot /wordpress/trunk /wp-pot/trunk/wordpress-admin.pot --exclude=wp-admin/includes/continents-cities.php --include=wp-admin/*

It should only parse files in wp-admin and not also wp-content/wp-includes/etc.

@swissspidy swissspidy changed the title make-pot: --include is ignored include argument is ignored Oct 21, 2019
@swissspidy swissspidy added the bug label Oct 21, 2019
@ocean90
Copy link
Contributor Author

ocean90 commented May 14, 2020

Based on the lock file, 2.2.0 bundles v2.1.2 of this command which gives us this changelog. #175 seems to be related.

@ocean90
Copy link
Contributor Author

ocean90 commented Jul 12, 2021

#262 didn't fix the first case for continents-cities.php. Debug output:

Debug (bootstrap): Running command: i18n make-pot (0.981s)
Debug (make-pot): No valid theme stylesheet or plugin file found, treating as a regular project. (0.987s)
Debug (make-pot): Extracting all strings regardless of text domain (0.987s)
Debug (make-pot): Destination: /home/wporgdev/co/wp-pot/trunk/wordpress-continents-cities.pot (0.988s)
Debug (make-pot): Only including the following files: wp-admin/includes/continents-cities.php (0.988s)
Debug (make-pot): Excluding the following files: node_modules,.git,.svn,.CVS,.hg,vendor,Gruntfile.js,webpack.config.js,*.min.js (0.989s)
Debug (make-pot): Parsing file index.php (1.932s)
Debug (make-pot): Parsing file wp-activate.php (1.933s)
Debug (make-pot): Parsing file wp-admin/about.php (1.943s)
Debug (make-pot): Parsing file wp-admin/admin-ajax.php (1.95s)
Debug (make-pot): Parsing file wp-admin/admin-footer.php (1.955s)
Debug (make-pot): Parsing file wp-admin/admin-functions.php (1.957s)
Debug (make-pot): Parsing file wp-admin/admin-header.php (1.958s)
Debug (make-pot): Parsing file wp-admin/admin-post.php (1.966s)
Debug (make-pot): Parsing file wp-admin/admin.php (1.968s)
Debug (make-pot): Parsing file wp-admin/async-upload.php (1.98s)
// Snip

@swissspidy
Copy link
Member

@ocean90 So you ran the first command from above?

@swissspidy swissspidy reopened this Jul 12, 2021
@swissspidy
Copy link
Member

If so, did you try adding excludes to it?

@ocean90
Copy link
Contributor Author

ocean90 commented Jul 12, 2021

@ocean90
Copy link
Contributor Author

ocean90 commented Jul 12, 2021

I might be possible that I had a conflict with my custom build, on second try it seems to work now.

@swissspidy
Copy link
Member

Awesome. Closing again then.

If there's still an issue, just let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants