nix-community / dconf2nix

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

unexpected "{" #113

Closed nydragon closed 3 months ago

nydragon commented 3 months ago

Type of bug

Parsing error

Version

0.1.1

Did you test against master?

Error message (if not timeout)

dconf2nix: "<stdin>" (line 322, column 51):
unexpected "{"
expecting "<("
CallStack (from HasCallStack):
  error, called at src/DConf2Nix.hs:35:16 in dconf2nix-0.1.1-DWH19QhejMQHnhtTZuDji8:DConf2Nix

DConf input

[org/gnome/shell]
app-picker-layout=[{'org.gnome.Contacts.desktop': <{'position': <0>}>, 'org.gnome.Weather.desktop': <{'position': <1>}>, 'org.gnome.clocks.desktop': <{'position': <2>}>, 'org.gnome.Maps.desktop': <{'position': <3>}>, 'org.gnome.Snapshot.desktop': <{'position': <4>}>, 'org.gnome.Totem.desktop': <{'position': <5>}>, 'org.gnome.Calculator.desktop': <{'position': <6>}>, 'org.gnome.Epiphany.WebApp_bccc14ee7da1d20ff06b9ff2497087e8c7d9f28b.desktop': <{'position': <7>}>, 'simple-scan.desktop': <{'position': <8>}>, 'org.gnome.Extensions.desktop': <{'position': <9>}>, '6d7a4833-271a-4194-8ad8-7e7ae095d305': <{'position': <10>}>, 'Alacritty.desktop': <{'position': <11>}>, 'firefox.desktop': <{'position': <12>}>, 'fish.desktop': <{'position': <13>}>, 'Utilities': <{'position': <14>}>, 'htop.desktop': <{'position': <15>}>, 'yelp.desktop': <{'position': <16>}>, 'org.kde.kdeconnect.app.desktop': <{'position': <17>}>, 'org.kde.kdeconnect.nonplasma.desktop': <{'position': <18>}>, 'org.kde.kdeconnect-settings.desktop': <{'position': <19>}>, 'org.kde.kdeconnect.sms.desktop': <{'position': <20>}>, 'org.keepassxc.KeePassXC.desktop': <{'position': <21>}>, 'nvim.desktop': <{'position': <22>}>}, {'com.nextcloud.desktopclient.nextcloud.desktop': <{'position': <0>}>, 'nixos-manual.desktop': <{'position': <1>}>, 'steam.desktop': <{'position': <2>}>, 'org.gnome.TextEditor.desktop': <{'position': <3>}>, 'thunderbird.desktop': <{'position': <4>}>, 'org.gnome.Tour.desktop': <{'position': <5>}>, 'xterm.desktop': <{'position': <6>}>, 'org.gnome.SystemMonitor.desktop': <{'position': <7>}>}]

Additional context

No response

jtojnar commented 3 months ago

This was fixed in https://github.com/nix-community/dconf2nix/commit/d9c960e87336b7c42b3e80f7ed4e5d56f8a3e107

Still need to implement the Nixpkgs part before I can make a release.