lihf8515 / parseini Goto Github PK
View Code? Open in Web Editor NEWA high-performance ini parse library for nim.
License: MIT License
A high-performance ini parse library for nim.
License: MIT License
version 0.1.0 is outdated, please make a new release. thanks!
I like this parser - it works very nicely. I have this config file below that doesn't use quoted values. The config file on the left is the original one.
The code below adds the new keys
import parseini
var conf = loadConfig("/tmp/sssd.conf")
conf.set("session_recording","scope","Some")
conf.set("session_recording","users","example,recording")
conf.write("/tmp/sssd.conf")
The added quoted values break the config file when sssd
tries to reload it. Is there a way for the set
proc to infer from the rest of config file if quotations are needed or maybe the proc should have a bool option to specify if the values shout be quoted?
Greetings, thank you for the great module.
/home/akito/.nimble/pkgs/parseini-0.1.0/parseini.nim(582) loadConfig
/home/akito/.nimble/pkgs/parseini-0.1.0/parseini.nim(551) loadConfig
/home/akito/.nimble/pkgs/parseini-0.1.0/parseini.nim(463) next
/home/akito/.choosenim/toolchains/nim-0.20.0/lib/system/assign.nim(243) FieldDiscriminantCheck
/home/akito/.choosenim/toolchains/nim-0.20.0/lib/system/fatal.nim(39) sysFatal
Error: unhandled exception: assignment to discriminant changes object branch; compile with -d:nimOldCaseObjects for a transition period [FieldError]
Error: execution of an external program failed:
I got this error after upgrading to Nim v0.20.0, because case object branch transitions via system.reset are deprecated, which is mentioned here.
I hope there will be a fix available for this.
Thank you again, good job on the module.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.