prototool icon indicating copy to clipboard operation
prototool copied to clipboard

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

Open talpa opened this issue 6 years ago • 3 comments

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

talpa avatar Apr 15 '20 21:04 talpa

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

jeffreyyong avatar May 18 '20 14:05 jeffreyyong

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

smaye81 avatar May 19 '20 18:05 smaye81

`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."}

ingted avatar Jun 22 '20 09:06 ingted