You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think protoc-gen-nrpc does not handle a package splitted in several files.
If you put the a.proto file in a different package, or merge both files, it should workaround the issue.
Yes, when merging everything into a single file, the compilation works fine. However, doing so would require me to repeatedly define the same entities across multiple files. For example, I use .proto files to define error codes. If each .proto file has to independently define the same error codes and keep them synchronized, it would introduce a significant maintenance burden.
That's why I was hoping to use import statements to reference other .proto files and still successfully compile with nrpc. Additionally, when using grpc_out to generate grpc.go files, the compilation works without any issues.
It definitely is as issue that needs fixing, I was just suggesting a workaround. Meanwhile if you need to keep a separated file for codes, you can put it in a different package.
Hi,
I encountered an issue while trying to compile .proto files using your library. Here is the detailed setup and problem:
File Descriptions
a.proto:
b.proto:
proto
Compilation Command
Error Message
This error makes it unclear why BMessage isn't recognized as part of the defined package or type system.
Could you please help clarify if this is a bug in the library or if there's a missing configuration on my side?
Thank you for your assistance!
The text was updated successfully, but these errors were encountered: