-
Notifications
You must be signed in to change notification settings - Fork 273
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
Version 0.8.6: * What went wrong: Execution failed for task ':article:generateProto'. > protoc: stdout: . stderr: --grpckotlin_out: protoc-gen-grpckotlin: %1 is not a valid Win32 application #268
Comments
Is protoc-gen-grpckotlin a third party plugin? Also, if you run your build with $ ./gradlew clean build --info |
I have a similar problem with the Kroto+ plugin, which is declared in the build as follows:
When actually executed, this adds the following additional parameter to the
It appears that protoc is attempting to load this jar file as a Win32 application, and failing to do so with the "not a valid Win32 application" error result. I have tried associating jar files to java, and this seems to have worked, but the error remains the same. |
@rocketraman can you clarify what you mean by working, but the error remains the same? You are correct that protoc plugins are just executables that protoc calls out to. I inspected the jar and it appears to be a spring boot bash script. I'm not sure what's the easiest way to get this working on Windows. I would suggest opening an issue on |
I meant jar files are correctly associated with java in Windows, but that didn't fix it.
Yes, @marcoferrer of krotoplus confirmed that the issue is that the spring boot bash script appears not to be executable on windows, and suggested a temporary workaround of a batch script that in turn executes the plugin. This does seem to work. So there doesn't appear to be any issue with the protobuf gradle plugin. Sorry for the noise! |
@zhangkun83 Since this isnt related to the protobuf plugin I think it can be closed out. |
Using
./gradlew clean generateProto
and got the following error on Windows 10:But the same command works fine on my Mac
The text was updated successfully, but these errors were encountered: