dbc-codegen icon indicating copy to clipboard operation
dbc-codegen copied to clipboard

Better error messages for DBC file decoding

Open andresv opened this issue 4 years ago • 2 comments

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

andresv avatar Mar 24 '21 15:03 andresv

@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.

killercup avatar Mar 31 '21 08:03 killercup

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.

marcelbuesing avatar Apr 01 '21 19:04 marcelbuesing