jvolkman / intellij-protobuf-editor

Protocol Buffers for IntelliJ-based IDEs
Apache License 2.0
122 stars 15 forks source link

Auto-Detect src/main/proto for plugin config #46

Open ByteAlex opened 4 years ago

ByteAlex commented 4 years ago

Hey,

I was just messing around with importing custom proto files, but the plugin said it couldn't find the file, - when running protoc in default configuration it works.

So I digged into the plugin configuration and found out that src/main/proto is not an auto-detected path for imports. I suggest adding so, because src/main/proto is the default protoRootLocation.

Thanks for reading!

kshchepanovskyi commented 4 years ago

src/main/proto should be added to a source set (gradle) or simply marked as a source root in IDEA.

upendrao commented 4 years ago

please add src/main/protobuf to the default import paths. I could not see this path in case of a gradle multi module project where protobuf folder sits in one of the sub-modules