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

Errors in Database.load should include input filename in the error message #1067

Closed
olafurpg opened this issue Aug 14, 2017 · 0 comments
Closed

Comments

@olafurpg
Copy link
Member

I'm currently debugging an issue in how sbthost emits .semanticdb files during incremental compilation. The stack traces look like this

[info]   com.google.protobuf.InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly in the middle of a field.  This could mean either that the input has been truncated or that an embedded message misreported its own length.
[info]   at com.google.protobuf.InvalidProtocolBufferException.truncatedMessage(InvalidProtocolBufferException.java:82)
[info]   at com.google.protobuf.CodedInputStream$ArrayDecoder.skipRawBytes(CodedInputStream.java:1200)
[info]   at com.google.protobuf.CodedInputStream$ArrayDecoder.skipField(CodedInputStream.java:575)
[info]   at lang.meta.internal.semanticdb.schema.Database.mergeFrom(Database.scala:45)

it would be nice if the message included the filename that was being loaded. That would help me inspect its contents and see why it's wrong.

@olafurpg olafurpg changed the title Errors in Database.load to include input in the error message Errors in Database.load should include input filename in the error message Aug 14, 2017
@olafurpg olafurpg added this to the 2.1.0 milestone Nov 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant