omgrpc icon indicating copy to clipboard operation
omgrpc copied to clipboard

error with imports while trying to open a proto file

Open kurtinlane opened this issue 8 years ago • 3 comments

Error: failed to import '//google/protobuf/timestamp.proto' in

screen shot 2017-02-13 at 4 29 51 pm

kurtinlane avatar Feb 13 '17 23:02 kurtinlane

I get the same error - can you bundle the standard google protobuf extensions, or give us a way to set up a global library/include directory?

dpratt avatar Jun 23 '17 17:06 dpratt

Yeah that would be good. I'll have to check Node's grpc implementation again and see if there is a way to do this (unless you guys know of one?)

When you generate Go code from a proto that imports from disparate paths it all works fine, but for whatever reason when you try and use the same proto with the node implementation it blows up unless all of the imports and the file itself share some common root directory. It's very annoying. The gRPC package is actively worked on though so maybe it's an issue they've addressed and that I can fix here. I'll check it out.

troylelandshields avatar Jul 04 '17 04:07 troylelandshields

Here is another import that fails Error: failed to import '/google/api/annotations.proto'

joshadambell avatar Oct 05 '17 21:10 joshadambell