wc-duck / datalibrary

Open Source Data Library for data serialization.
Other
42 stars 8 forks source link

Member type checking sometimes give confusing errors #70

Closed lundmark closed 5 years ago

lundmark commented 6 years ago

So in my fairly large type library, I get this error (I know what it actually is and how to solve it)

Datalibrary ERROR: couldn't find type for member 'position' Datalibrary ERROR: at line 387, col 1: }

When the actual error is in a member in a type much higher up.

lundmark commented 6 years ago

So maybe give the type that the member belongs to and don't output line/col would be a better choice?

wc-duck commented 5 years ago

Do you still have a repro for this?

wc-duck commented 5 years ago

No need for a repro, just checked the code and it is obvious what's wrong.