Skip to content
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

Problem parsing array properties #112

Open
1 task
akaihola opened this issue Jul 16, 2024 · 1 comment
Open
1 task

Problem parsing array properties #112

akaihola opened this issue Jul 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@akaihola
Copy link

Type of bug

Parsing error

Version

0.1.1

Did you test against master?

  • Certainly

Error message (if not timeout)

$ dconf2nix </tmp/dconf.dump
dconf2nix: "<stdin>" (line 2, column 16):
unexpected "s"
expecting white space, "@", "{", "[", "'", "false", "true", "-", digit, "uint32 ", "int64 ", "\"", "(" or "<("
CallStack (from HasCallStack):
  error, called at src/DConf2Nix.hs:35:16 in dconf2nix-0.1.1-AY0n40I6HuiBfBhx2w9LA5:DConf2Nix

DConf input

[org/gnome/desktop/input-sources]
mru-sources=@a(ss) []

Additional context

Removing the @a(ss) type in my input file leads to a successful run.

As mentioned by @michael-catanzaro in this RedHat Bugzilla comment,

@a(ss) is the type of the value (array of tuples, each tuple containing two strings)
@akaihola akaihola added the bug Something isn't working label Jul 16, 2024
@jtojnar
Copy link
Contributor

jtojnar commented Jul 17, 2024

Thanks for reporting, this should have been fixed by 49fcec8.

There are still some things I need to finish before releasing a new version but not sure when I will be able to get to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants