-
Notifications
You must be signed in to change notification settings - Fork 123
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 set value, Did not find key ...
#4987
Comments
Thank you for reporting this problem!
To make this issue reproducible we probably need a longer example, including the mounting of TOML (probably the bug is related to this). @atmaxinger do you maybe have an idea? |
For some reason, it worked today. But then I tried to remove one entry in the array and it removed the whole array. I used root@messstation:/home/olimex/opensesame/debian# kdb mount -vv /home/olimex/opensesame/files/opensesame.spec spec:/sw/libelektra/opensesame/#0/current ni
root@messstation:/home/olimex/opensesame/debian# kdb spec-mount -vv /sw/libelektra/opensesame/#0/current
Got mountpoint from spec:/sw/libelektra/opensesame/#0/current with 24 nodes, configfile: opensesame.toml and mountpoint: /sw/libelektra/opensesame/#0/current
root@messstation:/home/olimex/opensesame/debian# kdb mount -vv /home/olimex/opensesame/files/opensesame.state.spec spec:/state/libelektra/opensesame/#0/current ni
root@messstation:/home/olimex/opensesame/debian# kdb spec-mount -vv /state/libelektra/opensesame/#0/current ni
Got mountpoint from spec:/state/libelektra/opensesame/#0/current with 3 nodes, configfile: opensesame.state and mountpoint: /state/libelektra/opensesame/#0/current TOML files used opensesame.spec and opensesame.stat.spec |
|
@atmaxinger how can I add an array with |
@fel115 you can choose your own syntax, but better use toml to not run into conversation issues. Btw. As last resort you can also directly edit ~/.config/opensesame.toml |
@markus2330 Thx, now I was able to open the editor with the toml-format. I tried to add the array by adding `sensors.#0.loc = "weatherstation" to the ~/.config/opensesame.toml file, but I get this error message:
|
I think you need to quote |
Perfect, now its working. Thx |
After setting a new key/value to the database, elektra can't find the new created key.
With other values, it worked well. Could this be caused by the second
#0
?I also described this issue in this issue of opensesame.
The text was updated successfully, but these errors were encountered: