Skip to content

intellij integration can be confusing #784

@tg-freigmbh

Description

@tg-freigmbh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions