-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
sync: crashes on TOML files but lint shows no problems #613
Comments
To others: see an example problematic The problem is indeed that the file contains an unquoted string, which is invalid TOML (see the TOML spec). However, I agree that |
ee7
added a commit
that referenced
this issue
Jun 17, 2022
A manually edited `tests.toml` file might contain invalid TOML. For example: [2ee1d9af-1c43-416c-b41b-cefd7d4d2b2a] description = encode yes where `encode yes` is invalid [1] because it is unquoted. Before this commit, `configlet sync` would not handle the TOML parsing exception: $ cd /tmp $ git clone --quiet https://github.com/exercism/common-lisp $ cd common-lisp $ git checkout f521b1fb0f04ffc2d5baa6cf0bba37c231cc1bd7 $ bin/fetch-configlet $ bin/configlet sync --tests Updating cached 'problem-specifications' data... Checking exercises... parsetoml.nim(908) parseValue Error: unhandled exception: /tmp/common-lisp/exercises/practice/affine-cipher/.meta/tests.toml(6:16) unexpected character "e" [TomlError] With this commit, configlet still exits immediately, but handles the exception: $ configlet sync --tests Updating cached 'problem-specifications' data... Checking exercises... Error: A 'tests.toml' file contains invalid TOML: /tmp/common-lisp/exercises/practice/affine-cipher/.meta/tests.toml(6:16) unexpected character "e" The expected 'tests.toml' format is documented in https://exercism.org/docs/building/configlet/sync#h-tests Note that `configlet lint` does not yet lint `tests.toml` files, and so invalid TOML does not yet cause `configlet lint` to indicate an error. [1] https://toml.io/en/v1.0.0#string Fixes: #613
ee7
changed the title
Sync crashing on TOML files but lint shows no problems.
sync: crashes on TOML files but lint shows no problems
Jul 1, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Encountered this using configlet version
4.0.0-beta.4
I run the command
configlet sync --tests --docs --metadata --filepaths
and it crashes with the following sort of error:This is because my TOML file has lines like:
description = blah blah
rather thandescription = "blah blah"
.But
configlet lint
reports no problems.The text was updated successfully, but these errors were encountered: