Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

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

Open
talpa opened this issue Apr 15, 2020 · 3 comments
Open

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

talpa opened this issue Apr 15, 2020 · 3 comments

Comments

@talpa
Copy link

talpa commented Apr 15, 2020

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
Copy link

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

@smaye81
Copy link
Contributor

smaye81 commented May 19, 2020

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

@ingted
Copy link

ingted commented Jun 22, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants