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

Docs state extracting from code supports wildcards, but it does not #815

Open
haf opened this issue Mar 20, 2024 · 0 comments
Open

Docs state extracting from code supports wildcards, but it does not #815

haf opened this issue Mar 20, 2024 · 0 comments
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@haf
Copy link

haf commented Mar 20, 2024

Describe the bug
According to the docs, I can feed intl_translation:extract_to_arb a wildcard path:

This supports wildcards. For example, to extract messages from a series of files in path lib/**/*.dart, you can run

https://pub.dev/packages/intl_translation#extracting-and-using-translated-messages

This is directly false as it's more of a guide on how to use some (not all) shells on some (not all) operating systems. For you to state that the software supports wildcards, the process that is your software must be able to take in wildcards (the process that is your software will only take in a set of relative paths without wildcards by following the implicit intent of the documentation).

To Reproduce

Follow the docs.

System info

You could merge #528 - there was a PR back in 2019 which seems to have been forgotten. Note: I haven't reviewed the code of the PR.

(Yes, yes, yes! But this is a nitpick only! — No, it's actually not; I'm running my commands via Taskfiles that don't support wildcard expansion (quite sanely) — the expectation is that I can type the exact program inputs without knowing the escape rules for my particular shell when codifying commands)

@haf haf added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

1 participant