Skip to content

Error: No such type 'BMessage' in package '' when compiling .proto files #80

@am0314

Description

@am0314

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:

syntax = "proto3";
package nrpctest;
option go_package = "./ab_pb";
message AMessage {
    int32 AA =1;
}

b.proto:

proto

syntax = "proto3";
package nrpctest;

import "a.proto";

option go_package = "./ab_pb";

service BRPC {
    rpc B(AMessage) returns (AMessage);
    rpc C(BMessage) returns (BMessage);
}
message BMessage {
    int32 BB = 1;
}

Compilation Command

protoc --go_out=. --nrpc_out=. b.proto

Error Message

No such type 'BMessage' in package ''

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions