nnmatveev / idea-plugin-protobuf

Google Protocol Buffes support for Intellij IDEA
Other
120 stars 39 forks source link

Resolving references to imported .protos in maven dependencies #58

Open oliw opened 10 years ago

oliw commented 10 years ago

My project is using Maven to handle dependencies. One of the dependencies contains a bunch of useful proto files containing common message types.

When I reference those message types in my main project I get unresolved references

screen shot 2014-10-14 at 3 43 51 pm

Is this to be expected?

tcripps commented 10 years ago

Do you mean a jar library you link in via maven contains the .proto files? If so, I don't think that's a case I've considered.

rbrindl commented 9 years ago

I have the same problem. I am using gradle and have several subprojects that contain *.proto files and some of them have compile dependencies on others. This is mapped to modules in intellij. The plugin does not seem to consider to look into referenced modules to resolve imports.

rmartin-chwy commented 8 years ago

We're having a very similar problem. Our call to protoc is generated via a Gradle task using com.google.protobuf:protobuf-gradle-plugin. It's resolving all of our .proto paths as -I includes, which are MODULE_ROOT/src/main/proto and MODULE_ROOT/build/extracted-include-protos. However, the IDEA Protobuf plugin cannot resolve the import statements in any of our .proto files. Perhaps it needs an option to provide a list of search paths for import resolution?

IntelliJ IDEA Ultimate 15, Google Protocol Buffers support 0.5.9