question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

compile-custom fails on Windows 10

See original GitHub issue

It works on Ubuntu, MacOS but fails on Windows 10. Using below execution configutration (with kroto-plus.version = 0.5.0)

<execution>
    <id>grpc-coroutines</id>
    <goals>
        <goal>compile-custom</goal>
    </goals>
    <configuration>
        <pluginId>kroto-plus</pluginId>
        <pluginArtifact>com.github.marcoferrer.krotoplus:protoc-gen-kroto-plus:${kroto-plus.version}:jar:jvm8</pluginArtifact>
        <pluginParameter>ConfigPath=./krotoPlusConfig.asciipb</pluginParameter>
    </configuration>
</execution>

Windows Info:

[INFO] ------------------------------------------------------------------------
[INFO] Detecting the operating system and CPU architecture
[INFO] ------------------------------------------------------------------------
[INFO] os.detected.name: windows
[INFO] os.detected.arch: x86_64
[INFO] os.detected.version: 10.0
[INFO] os.detected.version.major: 10
[INFO] os.detected.version.minor: 0
[INFO] os.detected.classifier: windows-x86_64

Failed Error Logs:

[INFO] --- protobuf-maven-plugin:0.6.1:compile-custom (grpc-coroutines) @ blueprint-proto ---
[INFO] Compiling 4 proto file(s) to C:\git\modules\target\generated-sources\protobuf\kroto-plus
[ERROR] PROTOC FAILED: --kroto-plus_out: protoc-gen-kroto-plus: This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.

[ERROR] C:\git\modules\components\proto-definition\proto\CommandExecutor.proto [0:0]: --kroto-plus_out: protoc-gen-kroto-plus: This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jebbenchcommented, Dec 24, 2019

Using 0.6.0-SNAPSHOT and removing :jvm8@jar from the artifact in my protobuf config got this working on Windows for me.

My full protobuf config is:

protobuf {
    protoc {
        artifact = "com.google.protobuf:protoc:$protobuf_version"
    }

    //noinspection GroovyAssignabilityCheck
    plugins {
        grpc { artifact = "io.grpc:protoc-gen-grpc-java:$grpc_version" }
        coroutines {
            artifact = "com.github.marcoferrer.krotoplus:protoc-gen-grpc-coroutines:$krotoplus_version"
        }
    }

    generateProtoTasks {
        all().each{ task ->
            task.plugins {
                grpc {}
                coroutines {}
            }
        }
    }
}
1reaction
mattdkerrcommented, Nov 19, 2019

I pulled in the 0.6.0-SNAPSHOT version and changed the line to look like:

artifact = "com.github.marcoferrer.krotoplus:protoc-gen-kroto-plus:$krotoPlusVersion"

and then I get successful generateProto and compileJava sequences. Thanks!

Will this then be released?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Build Customizations | Microsoft Learn
If your custom build steps or events are not behaving as you expect, there are several things you can do to try to...
Read more >
Windows 10: error: failed to run custom build command for ...
I get an error when I use openssl on Windows. error: failed to run custom build command for `openssl-sys v0.9.40` process didn't exit ......
Read more >
Unable to compile custom-ops built against TF2.4 (Windows)
I'm attempting to compile TensorFlow Addons built against TF2.4rc3 but am running into an error on Windows builds. It's compiled using MSVC2019 and...
Read more >
Windows: compiling custom FW gives errors - Developer
Hi all, following the instructions in http://community.axoloti.com/t/using-custom-firmware/1486?u=mikeanblips I wanted to move my first baby ...
Read more >
python - g++ fails to build custom TensorFlow GPU op on ...
I'm trying to compile a custom GPU op for TensorFlow on Windows 10 (build 17134), with TensorFlow installed with pip3 -install --upgrade ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found