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

cannot run on OSX #51

Closed
pillar opened this issue Jul 17, 2015 · 4 comments
Closed

cannot run on OSX #51

pillar opened this issue Jul 17, 2015 · 4 comments

Comments

@pillar
Copy link

pillar commented Jul 17, 2015

when I run protoc on Mac's terminal, will stop on

data, err := ioutil.ReadAll(os.Stdin)

@dsymonds
Copy link
Contributor

What's the full command you are running?

@pillar
Copy link
Author

pillar commented Jul 17, 2015

the command is : protoc --go_out=. *.proto

I think the problem is look like this, the "os.Stdin" is waiting for EOF:
http://stackoverflow.com/questions/22744443/check-if-there-is-something-to-read-on-stdin-in-golang

@dsymonds
Copy link
Contributor

That stack overflow question is irrelevant here. protoc-gen-go runs as a subprocess of protoc, and they use stdin/stdout for their protocol. That's working as intended.

What makes you think that protoc-gen-go is stopping on the line you quoted?

@pillar
Copy link
Author

pillar commented Jul 17, 2015

ok, i see, it's my false, i have not installed the standard C++
implementation of protocol buffers, I thought this would implement on by Golang .. thank you very much.

@pillar pillar closed this as completed Jul 17, 2015
@golang golang locked as resolved and limited conversation to collaborators Jun 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants