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

Better error messages for DBC file decoding #31

Open
andresv opened this issue Mar 24, 2021 · 2 comments
Open

Better error messages for DBC file decoding #31

andresv opened this issue Mar 24, 2021 · 2 comments

Comments

@andresv
Copy link
Contributor

andresv commented Mar 24, 2021

At the moment it just says Could not parse dbc file and prints a lot of numbers in debug mode. No idea what is actually wrong with the file.

It should be better after can-dbc migrated from nom 4 to nom 6: https://github.com/marcelbuesing/can-dbc/commits/nom6

@killercup
Copy link
Member

@marcelbuesing not sure where you track this on your end, but I've recently seen nom_supreme which extends nom 6 with a bunch of useful things, including error contexts and nice error printing.

@marcelbuesing
Copy link
Contributor

Yeah it's kind of in can-dbc/#7. Thanks for the hint regarding nom_supreme I wasn't aware of that. I'm stuck in some nom "Incomplete" errors in the nom6 branch currently, maybe it also helps me with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants