Closed GVladi closed 3 months ago
This was implemented in release 2.5.0
@S1artie How is this supposed to work? I have a Maven project (containing proto files only) with com.google.api.grpc:proto-google-common-protos
as a dependency but import "google/api/annotations.proto"
is not resolved.
@alerosmile You were right, the scan did only cover "direct" dependencies, but did not include dependencies within dependency containers, which is how Maven dependencies are managed. Sorry about that! It was fixed now in version 2.5.3, in my tests, Maven dependencies did now import correctly as well.
@S1artie Thanks a lot! Works for me now.
The editor already supports importing of well-known protobuf types, like
google.protobuf.Any
:as the plugin contains the proto files with the well-known Protobuf types.
The editor should also support importing of any other proto files. It should scan the project dependencies (scope compile?) for *.proto files. For instance, the
com.google.api.grpc:proto-google-common-protos
JAR brings proto files for thegoogle.type.Decimal
type.The IntelliJ Protobuf Editor generates proto_path arguments as follows: