-
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
error: Parse error while parsing line: [
#16
Comments
The toml parser used in the crate is a bit basic and it looks like your Cargo.toml is quite complicated with its meta-data split in many lines. I have a suspicion that the problem happens trying to parse array in array |
Do you think this could fix it ? https://github.com/slint-ui/document-features/blob/master/lib.rs#L308 current_table = match table.split_once("]").map(|(t, _)| t.trim()) {
Some(line) => line,
None => continue, // ignore the sequence "\n[(.*)\n"
} |
I think we should try to skip all the lines until the end of the array by using get_balanced. In fact, we should try to call get_balanced even when in other sections, contrary to what this comment say Line 322 in ba20128
|
Thanks for the fix! It worked fine with my crate. Will you publish to crates.io the new version ? |
Your wishes have come true :-) 0.2.7 was published |
Hi 👋
I tried to add
document-features
to my project https://github.com/viridIT/vSMTP/compare/develop...doc/feature but I have this error :I believe this is a bug in the parser 🐛
The text was updated successfully, but these errors were encountered: