-
Notifications
You must be signed in to change notification settings - Fork 20
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
Kotlin DSL configuration causes incorrect column parsing with xlsx intermediate format #47
Comments
Is it reproducible if you change intermediate format to CSV? |
Do you mean changing xlsFileURI to csvFileURI and hosting the translations differently? I don't understand what you mean by intermediate format. I have not played around with |
I mean using: |
When changing xls to csv as the intermediate format the issue disappears. So it seems to be only present with |
OK, thanks so there is a bug in XLS(X) parsing. I'll investigate it. |
No worries, please ping me back here once you patch this up. Cheers 🍻 |
I was able to reproduce this issue. Some cells eg. never touched rows or columns, are expected to be nulls or not to exist at all. However, they are returned as empty strings with current settings. For now workaround is to use CSV (in case of Google sheets) or (if formulas are needed or input comes from XLS-only source) to remove empty columns and rows. Not sure how it looks like in Excel, probably it is sufficient to delete empty columns which were touched. |
Should be fixed in v1.0.19. |
Wow. Thanks for swift action. Cheers :) |
Preconditions:
./gradlew localization
executedExpected results:
Actual results:
Steps taken to investigate:
The issue is not existent in this different project.
Workarounds that fix the issue
Either:
ignorableColumns = listOf("")
to config block fixes the issue. Seems like an unnecessary hack.xlsFileURI = "https://docs.google.com/spreadsheets/d/REDACTED/export?format=xlsx"
tocsvFileURI = "https://docs.google.com/spreadsheets/d/REDACTED/export?format=csv"
Notes
I might be wrong and the issue might stem from a different source. I think it's important the plugin is tested with Kotlin Gradle DSL projects.
If needed, I remain at your disposal to further investigate the issue
The text was updated successfully, but these errors were encountered: