-
Notifications
You must be signed in to change notification settings - Fork 200
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
fix(lens): toml: write support #742
fix(lens): toml: write support #742
Conversation
If this gets merged please also adapt the NEWS file to mention arrays with more than 2 dimensions are not supported until further notice. |
The toml lens fails to save simple toml files due to problems with multi dimensional (>2) arrays. Therefore disable arrays with more than 2 dimensions for now to enable basic usage again. This commit fixes issue #715 by applying the suggested workaround. If anyone can come up with a better solution please feel free to do so. Fixes: 5e1cd31 (TOML lens (#91), 2018-11-29) Signed-off-by: Richard Leitner <[email protected]>
toml.io now provides a versioned reference URL, therefore use this instead of the old GitHub repo link. Signed-off-by: Richard Leitner <[email protected]>
Signed-off-by: Richard Leitner <[email protected]>
This test covers the bug described in issue #715. Signed-off-by: Richard Leitner <[email protected]>
The "Test: Toml.array_norec; Array of arrays" tested a 3 dimensional array. This commit fixes the test to actually test a 2 dimensional array. More than 2 dimensional arrays are currently not supported due to issue #715. Signed-off-by: Richard Leitner <[email protected]>
@raphink any questions or feedback on this PR? |
[PING] |
This solves the immediate problem, which is that the toml lens cannot save any files at all. @raphink did you want to add/change anything ? |
[PING] |
[PING] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change resolves the immediate problem of not being able to save toml files.
The toml lens fails to save simple toml files due to problems with multi
dimensional (>2) arrays.
Therefore disable arrays with more than 2 dimensions for now to enable
basic usage again.
This commit fixes issue #715 by applying the suggested workaround. If
anyone can come up with a better solution please feel free to do so.
Fixes: 5e1cd31 (TOML lens (#91), 2018-11-29)
Signed-off-by: Richard Leitner [email protected]