-
Notifications
You must be signed in to change notification settings - Fork 462
Protos with imported dependencies cannot be loaded #102
Comments
@twrobel3 Hi there! I've tried your example protos my self and i've got the same error. If both of the protos lives within the same folder then your The reason why your So if you don't want to change your import, you need to tell bloomrpc the same thing.
|
Let me know if that solve your issue, for now closing |
@fenos this solved my issue--thank you! (Might want to put this in an FAQ or something.) |
** Add the absolute path the to folder one step back to the protos folder. thanks, @fenos. works as charm |
This works. Thank you @fenos |
Thanks @fenos. Leaving the import the same and adding the parent folder of proto to Bloom's Import Paths worked for me also. |
On a larger codebase of ours, we have protos split between multiple files. In particular, the data model protos, which are shared amongst multiple parts of the system, are in a separate file from the service protos, and are imported. Simplified example below:
protos/exampleModel.proto
:protos/exampleService.proto
:These protos, placed in the same directly, compile fine with protoc, and the import is resolved. However I'm unable to load service.proto into bloom. Attempting to load the two together or loading the model before the service proto yields the same error: "no such Type or Enum 'Value' in Type .protos.SearchResponse"
The text was updated successfully, but these errors were encountered: