i wanted to generate the protos for dart by
protoc --proto_path=pb/proto --dart_out=lib/api/grpc/pb/gen --plugin=path/to/plugin/.pub-cachce/bin pb/proto/*.proto
but it says
path/to/project/pb/proto/user.proto: File not found.
path/to/project/pb/proto/product.proto: File not found.
badget.proto:5:1: Import "path/to/project/pb/proto/user.proto" was not found or had errors.
badget.proto:6:1: Import "path/to/project/pb/proto/product.proto" was not found or had errors.
badget.proto:24:3: "packagename.pb.user.Actor" is not defined.
badget.proto:37:3: "packagename.pb.product.Product" is not defined.
badget.proto:65:22: "packagename.pb.user.Actor" is not defined.
!!!i actieved the plugin before that !!! the path to project is not compelete path (its started by the the path configured in setting)
protos=> badgte.proto:
syntax = "proto3";
package packagename.pb.badget;
import "path/to/project/pb/proto/user.proto";
import "path/to/project/pb/proto/product.proto";
import "google/protobuf/timestamp.proto";
blah blah blah;
user.proto:
syntax = "proto3";
package packagename.pb.user;
blah blah blah;
product.proto:
syntax = "proto3";
package packagename.pb.product;
blah blah blah;