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

Illegal repetition near index 1 when module path contains characters like '{{' in the name #551

Closed
anthonymonori opened this issue Mar 30, 2023 · 1 comment · Fixed by #572

Comments

@anthonymonori
Copy link

Describe the bug

Crowdin CLI breaks on upload sources or download commmand when the root project contains values.xml in a template directory

❌ Illegal repetition near index 1
{{cookiecutter\.module_name}}

Full path is:
tools/cookiecut/src/templates/multiplatform_implementation_module/{{cookiecutter.module_name}}/src/androidMain/res/values/strings.xml

To Reproduce
Steps to reproduce the behavior:

  1. Add a folder with strings.xml into a folder that has {{}} in its name
  2. Execute CLI command: 'download' or 'upload sources'
  3. ❌ Illegal repetition near index 1

Expected behavior
It wouldn't fail uploading those sources because of illegal repetition in the name

Environment:

  • Java CLI 3.9.0

Additional context

I know the solution is to not upload such folder names, and it's easy to ignore and not generate a file entry for it in crowdin.yml so it doesn't get parsed by the CLI, but it's still a sub-optimal result. What do you think?

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.

3 participants