-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
[Bug] update.code with additive=false and code in multiple parent directories looses strings #264
Comments
@mman Thank you for reporting this, being detailed and even providing a workaround. I think it makes sense to change the default behavior to work like what you expect to work like. I don't think it's related to the I don't currently have the time to implement this and it seems not to be urgent as you found a workaround. But if you're up to implementing this with a test that fails with the currnent behavior but passes with the changes, I'd happily review and merge. |
I have taken a quick look at the linked code, will see if I can come up with a failing test first and then fix the logic... it's like a low priority with existing workaround, but still would be nice get it working... |
@Jeehut How do you
|
@mman The same command works for me, but the issue is that there's an asset file missing with secrets for testing machine translators. It's my fault, I hadn't documented it in the README, but I've just added the following to the "Contributing" section which should solve your problem:
Thanks for taking a look at this! |
Steps to Reproduce:
I have my
.bartycrouch.toml
configured in a way that it looks up strings in multiple code directories referenced via../
and combining them into oneLocalizable.strings
file located in./
For example like this:
Expected Behavior:
I expect
bartycrouch update
to combine all strings from all sources, clean them up and put them into oneLocalizable.strings
file.Current Behavior:
in
additive=false
mode strings from all directories but last specified viacodePaths
are lost and only strings for the last code directory are output.This means that all strings from
../App
and../Shared
directories are lost and only strings found in../Shared2
are actually output. Not sure if it is related to the fact that I use parent dir../
references.Workaround:
For now I have found a workaround to specify just one entry in
codePaths
and skip unwanted stuff viasubpathsToIgnore
.Environment
Show environment details
The text was updated successfully, but these errors were encountered: