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

can't get item in array at v0.14 #609

Closed
rise0chen opened this issue Dec 10, 2024 · 2 comments · Fixed by #613
Closed

can't get item in array at v0.14 #609

rise0chen opened this issue Dec 10, 2024 · 2 comments · Fixed by #613

Comments

@rise0chen
Copy link

Student:
  - Name: Tom
  - Name: Bob
println!("{}", cfg.get_string("Student[0].Name").unwrap())

error:

called `Result::unwrap()~on an “Err`value: configuration property "student[0].name" not found
@epage
Copy link
Contributor

epage commented Dec 13, 2024

Please in the future, write a complete issue with full reproduction steps and any relevant details (e.g. #608 says this is a regression introduced by d2ee90e).

So this was broken by #354 which was attempting to fix #340.

#531 looks to be another breakage and we should probably consider both cases in designing the fix, and not just one. In particular, some of the merging logic in #608 has me concerned.

@epage
Copy link
Contributor

epage commented Dec 17, 2024

FYI I've posted a revert at #613

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants
@epage @rise0chen and others