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

proto3 syntax is not identified as proper syntax only proto2 #24

Closed
moadqassem opened this issue Mar 31, 2015 · 5 comments
Closed

proto3 syntax is not identified as proper syntax only proto2 #24

moadqassem opened this issue Mar 31, 2015 · 5 comments

Comments

@moadqassem
Copy link

| have installed the plugin in my $GOPATH in order to give it a go, and I have created a .proto file with proto3 syntax where I got rid of all the required keywords and started the file with ' syntax="proto3" ', however I keep getting this compilation error message:

" Unrecognized syntax identifier "proto3". This parser only recognizes "proto2"."

P.S: when I change from proto3 to proto2 the compilation succeeded however I have of course to invoke the required keywords again because this feature is not supported in proto2.

@dsymonds
Copy link
Contributor

Your protoc is out of date. You need to update it.

@moadqassem
Copy link
Author

I see but how can update exactly, I mean I have executed what it's written in the steps and to get everything runs I should execute this command line:

go get -u github.com/golang/protobuf/{proto,protoc-gen-go}

is there any extra steps?

@dsymonds
Copy link
Contributor

No, that's only the Go parts. You need to update your protoc from https://github.com/google/protobuf.

@Timmmm
Copy link

Timmmm commented Jul 25, 2016

I got this message with the "latest" protoc from here:

https://developers.google.com/protocol-buffers/docs/downloads

I didn't notice that that version is from 2014. You might want to update it!

@zombiezen
Copy link
Contributor

Acknowledged. Following up to try to get that link updated.

@golang golang locked and limited conversation to collaborators Jun 26, 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

4 participants