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

Unknown TOML error #2

Open
jmikedupont2 opened this issue Oct 24, 2023 · 4 comments
Open

Unknown TOML error #2

jmikedupont2 opened this issue Oct 24, 2023 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@jmikedupont2
Copy link

testing with this data:
https://github.com/jmikedupont2/emacs-data/blob/main/emacspeak/profile/profile1.el
gives me this error https://github.com/jmikedupont2/emacs-data/blob/main/emacspeak/profile/profile1.out

I suppose the data is too complex?

@kaushalmodi
Copy link
Owner

I suppose the data is too complex?

The supported types are in this function

(cond ((tomelr--print-boolean object))

I believe you are trying to use hash tables.

@jmikedupont2
Copy link
Author

jmikedupont2 commented Oct 24, 2023

yes hash tables, I think it looks like a count per object https://github.com/jmikedupont2/emacs-data/blob/main/emacspeak/profile/profile.py here is my simple parser that i am making to pull out some data

@kaushalmodi
Copy link
Owner

TOML assigns a type to each element. To support hash tables, this library will need to assign each element of that table to a specific element (string, integer, float, etc.). This library originated out of the need to parse blog meta-data for my ox-hugo package. So, I did not need to support hash tables. If you would like to work on a PR that adds this feature + tests, I can take a look at it and merge it.

@jmikedupont2
Copy link
Author

jmikedupont2 commented Oct 24, 2023 via email

@kaushalmodi kaushalmodi added the help wanted Extra attention is needed label Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants