google / google/protobuf-gradle-plugin

intellij integration can be confusing

Open
#784 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Groovy
Stars
1.8k
Forks
288
PR merge metrics
No merged PRs in 30d

Description

Use the reproducer Project provided here-> https://github.com/tg-freigmbh/protoexample

We have proto files in both subproject a and b, the tests (sourceset check) of b have a dependency to a, but the production code of a does not have a dependency to b.

Image

So extracted-include-protos/check is marked as generated sources instead of a generated test-sources

Idealy we would like to turn off extracted-include protos für the checks sourceset, as protobuf compilation is only ever relevant for the main source set.
This causes even more confusion if the bundled protocol buffers plugin for intellij is enabled.

Image

Image
Intellij will now think that the protobuf files in a:main and b:main (actually it should be test) are different entities.

I will also create a ticket with jetbrains what they think how this should be resolved.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.