pseudomuto / protoc-gen-doc

Documentation generator plugin for Google Protocol Buffers
MIT License
2.64k stars 464 forks source link

Program not found or is not executable (mac os x) #361

Closed jsw closed 6 years ago

jsw commented 6 years ago

I've seen #345 and #268, but am still at a loss why the README instructions don't work.

I used go get -u github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc

I see ~/go/bin/protoc-gen-doc and it's in my PATH and executable.

I'm running go version go1.10.2 darwin/amd64

➜  protoc --plugin=protoc-gen-doc -Isrc/main/protobuf --doc_out=. --doc_opt=markdown,doc.md src/main/protobuf/foo.proto
protoc-gen-doc: program not found or is not executable
--doc_out: protoc-gen-doc: Plugin failed with status code 1.
➜  protoc --version
libprotoc 3.5.1
➜  which protoc-gen-doc
/Users/jswhite/go/bin/protoc-gen-doc
jsw commented 6 years ago

Figured out the issue. The --plugin parameter requires an absolute path, so removing that fixes the issue.