Open gdetrez opened 5 years ago
After a bit more investigation, I now believe this is the same issue as #9: bits of the "old" config remain when storing the modified config. And if I switch to the git repo in Cargo.toml, the example works as expected. I didn't notice the similarity at first because in my tests the config file remained syntactically valid.
Seems like this was solved alongside #ā9 in commit 44c6d52. Reproduces in 6a0f409, but not after #ā9 was merged. Should be fixed with the next release?
any update on this issue?
I'm using confy 0.3.1, and it seems that I am unable to remove items from a vec in my config (adding items works fine). But when I was trying to build a simple example to demonstrate the issue, I found a very confusing one.
Here's my code:
This is what I get in the config file after running it (any number of times):
I expected one item after the first run and zero after subsequent runs. And the default vec has two different items (
foo
andbar
) whereas the toml file have the same item twice.