#grpc

/

      • fundies
        why not just not run protoc on it?
      • ejona
        hdon: You probably want to include the .proto with -I instead of passing it on the rest of the command line (which will generate it)
      • You may only need -I. (for current directory)
      • hdon
        ejona: i thought -I just added directories to search for .proto files, and you needed to use import or protoc arguments to load individual .proto files
      • maybe FileDescriptor contains a flag that tells me if it was passed on the command-line?
      • ohhhhh
      • CodeGenerationRequest has repeated string file_to_generate
      • but.... i would still need to walk the tree of message types to discover which types need to be emitted recursively, unless i wanted the person invoking protoc to have to do that.... which is maybe the correct way to do it
      • ok so
      • i'm trying again to switch from pbjs5 to pbjs6 using @grpc/proto-loader
      • i've got a .proto file that extends FieldDescriptorProto and a couple of others
      • i switched that .proto file to syntax="proto2"
      • but now whenever i run protoLoader.loadSync i still get this error: https://groups.google.com/forum/#!topic/protobu...
      • >Error: unresolvable extensions
      • what does unresolvable extensions mean anyway?
      • i thought the only thing i was going to have to change was a switch from proto3 to proto2 in order to get pbjs6 to like my code
      • could it mean that it couldn't find the messages i'm trying to extend?
      • ok i got it
      • i think it did mean that it couldn't find the messges i was trying to extend
      • using proto-loader, do i lose the encode and decode functions?
      • hdon has quit
      • hdon joined the channel
      • hdon has quit
      • npgm has quit
      • AppStore has quit
      • alexs has quit
      • gyre007 has quit
      • snowp has quit
      • AmandaC has quit
      • npgm joined the channel
      • AppStore joined the channel
      • alexs joined the channel
      • gyre007 joined the channel
      • jbenet joined the channel
      • snowp joined the channel
      • AmandaC joined the channel
      • montem joined the channel
      • imouto joined the channel
      • npgm joined the channel
      • hdon joined the channel
      • hdon has quit
      • hdon joined the channel
      • hi again
      • i'm still trying to figure out how to use @grpc/proto-loader and gain access to encode and decode functions as well as use grpc.loadPackageDefinition in order to create grpc clients and servers
      • internally, @grpc/proto-loader seems to extract only services and then create a "package definition" for grpc to consume
      • but what i'd really like is to be able to get both services/rpcs as well as message types with codecs
      • (when i say "grpc" i am usually referring to the npm package)
      • hdon has quit
      • hdon joined the channel