Skip to content
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

Introduces an example project using Kotlin #412

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Introduces an example project using Kotlin #412

wants to merge 2 commits into from

Conversation

asarkar
Copy link

@asarkar asarkar commented Aug 19, 2020

No description provided.

@ST-DDT
Copy link
Collaborator

ST-DDT commented Aug 19, 2020

I tried to run the example project using both J8 + J11 and both CMD and Bash, but I always get the following message:

grafic

$ gradlew.bat clean build --console=plain
> Task :clean
> Task :extractIncludeProto
> Task :extractProto
> Task :generateProto FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':generateProto'.
> protoc: stdout: . stderr: --grpckt_out: protoc-gen-grpckt: Plugin failed with status code 1.


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s
4 actionable tasks: 4 executed

Do I really need a JDK 7 to run it?

@ST-DDT
Copy link
Collaborator

ST-DDT commented Aug 19, 2020

grpckt doesn't seem to be very mature to me.

The above error is related to:
grpc/grpc-kotlin#81 (comment)

😞

@asarkar
Copy link
Author

asarkar commented Aug 19, 2020

grpc-KT is not ready for prod. However, I can execute ./gradlew clean build on the sample project from command line without issues on my Mac. Are you running differently? I see mentions of .exe and JAR launcher in the thread you linked to, but I don’t understand how those are involved if executing Gradle wrapper from command line.

@asarkar
Copy link
Author

asarkar commented Aug 19, 2020

Never mind, I understand that the problem is in their plugin, and not how you run it. It appears on Windows that the plugin expects registry variable to be set for finding the JDK. I don’t have a Windows machine, so this issue didn’t come up for me.

@ST-DDT ST-DDT added the examples Everything related to examples label Aug 19, 2020
@ST-DDT ST-DDT added this to the 2.11.0 milestone Aug 19, 2020
@ST-DDT
Copy link
Collaborator

ST-DDT commented Aug 19, 2020

Thanks for providing the example, it really helped me reproducing and analyzing the error.
I won't merge it right now, because I thought about integrating it in the main build, but that will probably take some time/attempts.

@ST-DDT ST-DDT removed this from the 2.11.0 milestone Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Everything related to examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants