Giter VIP home page Giter VIP logo

Comments (12)

noah-nuebling avatar noah-nuebling commented on May 22, 2024 1

Alright @Jeehut, I posted an issue. It's mostly copy pasted from the comment but I added some extra details.

I found I can just delete a comment and then bartycrouch will regenerate it to the updated value, which made things pretty usable for me but it would still be really nice if this was fixed!

from bartycrouch.

Jeehut avatar Jeehut commented on May 22, 2024

Hi @marc-inn, thank you for your feature request. I just made an attempt to implement this and released a new version with it (3.4.0). Please upgrade BartyCrouch (e.g. via brew update && brew upgrade flinesoft/bartycrouch/bartycrouch) and use the new option override-comments (short -c) on the code sub command – also documented in the README here.

I hope this works, I haven't had the time to test it myself, but it might work. Please reopen the issue if it doesn't, I'm closing it for now.

from bartycrouch.

m9rc1n avatar m9rc1n commented on May 22, 2024

Working great!

I posted PR with small update, which made comments working for me.

Thanks

from bartycrouch.

Jeehut avatar Jeehut commented on May 22, 2024

Ahh yeah, I forgot that one. Great catch!

Would you mind also adding a test within your PR for the overrideComments option? That would be great to make sure the feature doesn't break in future releases. If not, I'll try to add one sometime later when I have more spare time. :)

from bartycrouch.

m9rc1n avatar m9rc1n commented on May 22, 2024

No problem :P Tests added.

from bartycrouch.

Jeehut avatar Jeehut commented on May 22, 2024

That was not exactly what I was looking for, but never mind, I'm merging it anyway, we can add tests for the overrideComments options change logic regarding the Strings files later on. ;)

from bartycrouch.

Jeehut avatar Jeehut commented on May 22, 2024

I just released v3.4.1 with your bug fix. Thanks again!

from bartycrouch.

banoslo avatar banoslo commented on May 22, 2024

Updating does not work for me. This is an issue again since we have to use 'bartycrouch update' instead of 'bartycrouch code'. Or am I missing something?

from bartycrouch.

Jeehut avatar Jeehut commented on May 22, 2024

Yes, you are missing something. There is no „code“ subcommand anymore starting with version 4 of BartyCrouch. Please refer to the migration guide and the config section in the README for more information.

from bartycrouch.

noah-nuebling avatar noah-nuebling commented on May 22, 2024

Hi! Is the overrideComments option still available? It doesn't seem to work for me.

I can only get the comments to change if I completely delete a key from the .strings file before running bartycrouch update

I'm on macOS 13.0 Beta (22A5321d), using bartycrouch 4.11.0, and my .bartycrouch.toml looks like this:

[update]
tasks = ["interfaces", "code", "normalize"]

[update.interfaces]
paths = ["app", "helper", "accomplice"]
subpathsToIgnore = [".git", "carthage", "pods", "build", ".build", "docs", "frameworks", "tests", "*/external", "*/SupportFiles", "*/iOS-Polynomial-Regression-master"]
defaultToBase = false
ignoreEmptyStrings = false
unstripped = false
ignoreKeys = ["#bartycrouch-ignore!", "#bc-ignore!", "#i!"]

[update.code]
overrideComments = true
codePaths = ["app", "helper", "accomplice"]
subpathsToIgnore = [".git", "carthage", "pods", "build", ".build", "docs", "frameworks", "tests", "*/external", "*/SupportFiles", "*/iOS-Polynomial-Regression-master"]
localizablePaths = ["./Localization"]
defaultToKeys = false
additive = false
unstripped = false
plistArguments = true
ignoreKeys = ["#bartycrouch-ignore!", "#bc-ignore!", "#i!"]

[update.transform]
codePaths = ["app", "helper", "accomplice"]
subpathsToIgnore = [".git", "carthage", "pods", "build", ".build", "docs", "frameworks", "tests", "*/external", "*/SupportFiles", "*/iOS-Polynomial-Regression-master"]
localizablePaths = ["./Localization"]
transformer = "foundation"
supportedLanguageEnumPath = "."
typeName = "BartyCrouch"
translateMethodName = "translate"
separateWithEmptyLine = true

[update.normalize]
paths = ["app", "helper", "accomplice"]
subpathsToIgnore = [".git", "carthage", "pods", "build", ".build", "docs", "frameworks", "tests", "*/external", "*/SupportFiles", "*/iOS-Polynomial-Regression-master"]
sourceLocale = "de"
harmonizeWithSource = true
sortByKeys = true
separateWithEmptyLine = true

[lint]
paths = ["app", "helper", "accomplice"]
subpathsToIgnore = [".git", "carthage", "pods", "build", ".build", "docs", "frameworks", "tests", "*/external", "*/SupportFiles", "*/iOS-Polynomial-Regression-master"]
duplicateKeys = true
emptyValues = true

My CLT output looks like this
CleanShot 2022-08-15 at 17 57 43@2x

Not sure if relevant but the normalize task doesn't seem to output anything after the ... so maybe there's something going wrong there?

Let me know if I should create an issue for this.

from bartycrouch.

Jeehut avatar Jeehut commented on May 22, 2024

@noah-nuebling If an option is documented in the README, it is still supported. Feel free to report an issue.

from bartycrouch.

Jeehut avatar Jeehut commented on May 22, 2024

FYI: @noah-nuebling's issue was fixed in the meantime and this should fully work again in version 4.13.0+.

from bartycrouch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.