nix-community / dconf2nix

:feet: Convert dconf files (e.g. GNOME Shell) to Nix, as expected by Home Manager [maintainer=@jtojnar]
Apache License 2.0
228 stars 6 forks source link

Unable to parse numbers in scientific notation #49

Closed cab404 closed 2 years ago

cab404 commented 2 years ago

Input:


[com/github/wwmm/easyeffects/streamoutputs/bassenhancer]
amount=-6.9388939039072284e-16
blend=0.0
listen=true

(valid config for easyeffects)

Output:

dconf2nix: "<stdin>" (line 74, column 27):
unexpected "e"
expecting digit or new-line
CallStack (from HasCallStack):
  error, called at src/DConf2Nix.hs:35:16 in dconf2nix-0.0.8-ADjdFpOZHMDCBz9zkj4k3n:DConf2Nix
gvolpe commented 2 years ago

Fixed in https://github.com/gvolpe/dconf2nix/commit/7aea3b548f446702897c04cb6766448ca31b609b, thanks for reporting the issue!

cab404 commented 2 years ago

Fixed in 7aea3b5, thanks for reporting the issue!

Thank you for fixing it so quickly! :heart: