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

Naming a field "from" renders .proto uncompilable #134

Open
Redoubts opened this issue Apr 20, 2019 · 0 comments
Open

Naming a field "from" renders .proto uncompilable #134

Redoubts opened this issue Apr 20, 2019 · 0 comments

Comments

@Redoubts
Copy link

The following proto file won't compile with pyrobuf:

syntax = "proto2";

package test;

message Item {
	optional double from = 1;
}

due to this error:

Error compiling Cython file:
------------------------------------------------------------
...
        self._from = 0
        return

    
    @property
    def from(self):
       ^
------------------------------------------------------------

out/test_proto.pyx:54:8: Expected an identifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant