easy_localization_generator
easy_localization_generator copied to clipboard
RangeError (index): Invalid value: Only valid value is 0: 1
I got this error. Please help me to solve it. Thanks a lot.
Hi @TungWang, can you provide some code or context to explain this issue? But with my experience, I think:
- You should check your google sheet, it must be public.
- If it is already public, you should check your CSV file, which was generated with easy_localization_generator. Check the format of this file.
Hi @TungWang, can you provide some code or context to explain this issue? But with my experience, I think:
- You should check your google sheet, it must be public.
- If it is already public, you should check your CSV file, which was generated with easy_localization_generator. Check the format of this file.
Hi @rinlv , I found the problem. When I use "zh_Hant", I got the error. After I changed "zh_Hant" to "zh_tw", the error gone. So, the next question is: why can't I use "zh_Hant"?
@TungWang it may be caused by LF line separator. #14
@TungWang it may be caused by LF line separator. #14
@lwj1994 Thanks for your support. @TungWang did it work for you?
@TungWang it may be caused by LF line separator. #14
@lwj1994 Thanks for your support. @TungWang did it work for you?
How do i try this commit?
Would you please teach me?
I modified "dev_dependencies" like below:
I got some error message because of the version problem.
"Because no versions of easy_localization_loader match >2.0.0 <2.0.1 and easy_localization_loader >=2.0.1 depends on http ^1.1.0, easy_localization_loader >2.0.0 requires http ^1.1.0. And because easy_localization_loader 2.0.0 depends on http ^1.0.0 and every version of easy_localization_generator from git depends on http ^0.13.5, easy_localization_generator from git is incompatible with easy_localization_loader >=2.0.0. So, because spaces_go depends on both easy_localization_loader ^2.0.0 and easy_localization_generator from git, version solving failed."
@TungWang
pub add this:
easy_localization_generator:
git:
url: https://github.com/lwj1994/easy_localization_generator
ref: dev
@TungWang
pub add this:
easy_localization_generator: git: url: https://github.com/lwj1994/easy_localization_generator ref: dev
I failed, because easy_localization_generator from git depends on http ^0.13.5.
@TungWang pub add this:
easy_localization_generator: git: url: https://github.com/lwj1994/easy_localization_generator ref: dev
I failed, because easy_localization_generator from git depends on http ^0.13.5.
add it on top:
dependency_overrides:
http: 1.1.0
@TungWang pub add this:
easy_localization_generator: git: url: https://github.com/lwj1994/easy_localization_generator ref: dev
I failed, because easy_localization_generator from git depends on http ^0.13.5.
add it on top:
dependency_overrides: http: 1.1.0
Unfortunately, I still get RangeError.
@TungWang pub add this:
easy_localization_generator: git: url: https://github.com/lwj1994/easy_localization_generator ref: dev
I failed, because easy_localization_generator from git depends on http ^0.13.5.
add it on top:
dependency_overrides: http: 1.1.0
Unfortunately, I still get RangeError.
do you delete the pubspec.lock firstly? maybe cause by cache