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

INI: Mathcheck Plugin Does not Work #1697

Closed
sanssecours opened this Issue Nov 4, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@sanssecours
Contributor

sanssecours commented Nov 4, 2017

Description

It looks like the mathcheck does not work correctly if we use INI as storage plugin.

Steps to Reproduce the Problem

kdb mount mathcheck.esr user/tmount/mathcheck mathcheck ini

kdb set user/tmount/mathcheck/check/test0/points 5.9
kdb set user/tmount/mathcheck/check/test1/points 4.5

kdb set user/tmount/mathcheck/check/gp
kdb setmeta user/tmount/mathcheck/check/gp check/math ":= + ../test0/points ../test1/points"

kdb get user/tmount/mathcheck/check/gp
# STDOUT: 10.4

Expected Result

The command kdb get prints 10.4.

Actual Result

The command kdb get prints nothing.

Additional Information

Everything works fine if we use the ni plugin instead of ini:

kdb mount mathcheck.esr user/tmount/mathcheck mathcheck ni

.

  • Elektra Version: master

@sanssecours sanssecours added the bug label Nov 4, 2017

@sanssecours sanssecours added this to the 0.8.21 milestone Nov 4, 2017

@sanssecours sanssecours changed the title from INI: Plugins Does not Work to INI: Mathcheck Plugin Does not Work Nov 4, 2017

@markus2330

This comment has been minimized.

Show comment
Hide comment
@markus2330

markus2330 Nov 4, 2017

Contributor

Thank you for reporting! Can you please also post the resulting ini file? Is the meta data properly stored in the file?

Contributor

markus2330 commented Nov 4, 2017

Thank you for reporting! Can you please also post the resulting ini file? Is the meta data properly stored in the file?

@sanssecours

This comment has been minimized.

Show comment
Hide comment
@sanssecours

sanssecours Nov 4, 2017

Contributor

Can you please also post the resulting ini file?

[check/test0]
points = 5.9
[check/test1]
points = 4.5
#@META check/math = := + ../test0/points ../test1/points
[check/gp]

Is the meta data properly stored in the file?

Yes, as far as I can tell. The command kdb getmeta user/tmount/mathcheck/check/gp check/math returns

:= + ../test0/points ../test1/points

.

Contributor

sanssecours commented Nov 4, 2017

Can you please also post the resulting ini file?

[check/test0]
points = 5.9
[check/test1]
points = 4.5
#@META check/math = := + ../test0/points ../test1/points
[check/gp]

Is the meta data properly stored in the file?

Yes, as far as I can tell. The command kdb getmeta user/tmount/mathcheck/check/gp check/math returns

:= + ../test0/points ../test1/points

.

@markus2330 markus2330 modified the milestones: 0.8.21, 0.8.22 Dec 22, 2017

@sanssecours sanssecours self-assigned this Jan 24, 2018

@sanssecours sanssecours referenced this issue Jan 24, 2018

Merged

INI: Never Store Non-Empty Keys as Section #1793

5 of 5 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment