New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include path doesn't seem to be correct #154

Closed
panzerfahrer opened this Issue Aug 1, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@panzerfahrer

panzerfahrer commented Aug 1, 2017

It seems that my proto files don't get collected during generation. I keep getting errors like the following:

com/example/entity.proto: com/example/entity.proto: No such file or directory

While trying to debug what I might be doing wrong, I encountered the protocparameter list. It includes paths to where proto files are expected, including ../src/main/proto. The paths are prepended with -I. Cross-checking with protoc --help tells me that include paths should rather be prepended with -IPATH:

-IPATH, --proto_path=PATH   Specify the directory in which to search for
                            imports.  May be specified multiple times;
                            directories will be searched in order.  If not
                            given, the current working directory is used.

See also: GenerateProtoTask.groovy#L372

I'm using protoc v3.3.0 from the maven artifact.

Can somebody please confirm whether I might be doing something wrong.

@zhangkun83

This comment has been minimized.

Show comment
Hide comment
@zhangkun83

zhangkun83 Aug 1, 2017

Collaborator

No, PATH in -IPATH is not part of the flag name, but the place holder for the actual path.

Collaborator

zhangkun83 commented Aug 1, 2017

No, PATH in -IPATH is not part of the flag name, but the place holder for the actual path.

@panzerfahrer

This comment has been minimized.

Show comment
Hide comment
@panzerfahrer

panzerfahrer Aug 1, 2017

Ok, that sounds reasonable. So, I'm doing something else wrong ;) Thanks for helping out so quick!

panzerfahrer commented Aug 1, 2017

Ok, that sounds reasonable. So, I'm doing something else wrong ;) Thanks for helping out so quick!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment