protoc custom plugin erroring out with Program not found or is not executable

前端 未结 2 1571
孤独总比滥情好
孤独总比滥情好 2021-01-27 06:42

I am trying to build a custom protoc plugin to generate custom output from .proto files. I literally copied java file containing CodeGenerator from protoc custom plugin as a sta

相关标签:
2条回答
  • 2021-01-27 07:45

    how about using absolute path of example.sh? protoc working directory may not be current folder.

    0 讨论(0)
  • 2021-01-27 07:47

    If that is your entire example.sh, it won't work because it doesn't have a "hashbang" line identifying the script interpreter.

    It should be something like:

    #!/bin/bash
    set -e
    java cp ...
    

    I think that's likely your problem because I tried running protoc and specifying an plug-in in the same way you did, and it worked as long as the plug-in was actually executable on its own.

    0 讨论(0)
提交回复
热议问题