uber / prototool

Your Swiss Army Knife for Protocol Buffers
MIT License
5.05k stars 345 forks source link

:Import "google/api/annotations.proto" was not found or had errors #550

Open talpa opened 4 years ago

talpa commented 4 years ago

Hi I try test prototool.yaml examle with my proto and I have this result for this import "google/api/annotations.proto"; thanks for help Ales

jeffreyyong commented 4 years ago

Hi I'm facing the same issue as well, if there any solution to this?

smaye81 commented 4 years ago

Can you provide more details? i.e. what are you trying to accomplish, what does your prototool.yaml look like, etc.

ingted commented 4 years ago

`syntax = "proto3";

package auth;

import "google/api/annotations.proto"; import "google/protobuf/empty.proto"; import "protoc-gen-swagger/options/annotations.proto"; import "validate/validate.proto"; import "google/protobuf/timestamp.proto";

// Auth service definition. service Auth { ....... `

This would cause:

prototool descriptor-set --json auth.proto {"filename":"auth.proto","line":7,"column":1,"message":"Import \"google/api/annotations.proto\" was not found or had errors."} {"filename":"auth.proto","line":9,"column":1,"message":"Import \"protoc-gen-swagger/options/annotations.proto\" was not found or had errors."} {"filename":"auth.proto","line":10,"column":1,"message":"Import \"validate/validate.proto\" was not found or had errors."} {"filename":"auth.proto","line":173,"column":3,"message":"\"user.UserSimpleProfile\" is not defined."} {"filename":"auth.proto","line":202,"column":3,"message":"\"user.UserSimpleProfile\" is not defined."}