-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IntelliJ IDEA doesn't recognize classes generated from proto files in a Gradle project #13882
Comments
/cc @evanchooly, @glefloch, @quarkusio/devtools |
Is it a kotlin project? I have a fix that register the generated output to the gradle compile task. |
@glefloch the issue exists in both Java and Kotlin projects. |
Isn't it enough to reload the project? That's how it works with maven projects, IntelliJ doesn't pick up new folders of generated sources until the project is reloaded |
Closing as we never got feedback |
Describe the bug
IntelliJ IDEA doesn't recognize classes generated from proto files in a Gradle project.
Expected behavior
Quarkus gRPC plugin should update IDEAs source sets so that it could see the generated classes automatically (for instance, like the protobuf-gradle-plugin does it).
Actual behavior
IntelliJ IDEA doesn't recognize classes generated from proto files in a Gradle project.
To Reproduce
Steps to reproduce the behavior:
'io.quarkus:quarkus-grpc'
dependency.src/main/proto
.build/classes/java/quarkus-generated-sources/grpc
.Environment (please complete the following information):
uname -a
orver
:20.1.0 Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64 x86_64
java -version
:1.10.3.Final
mvnw --version
orgradlew --version
):Additional context
The work around is to manually specify an additional source set in Gradle:
But I tried many things and wasted a lot of time until I found how to fix it. It is important to have a ready-to-run project after project generation.
The text was updated successfully, but these errors were encountered: