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

Option message in option.proto fails #1462

Open
lanttu opened this issue Jan 3, 2023 · 1 comment
Open

Option message in option.proto fails #1462

lanttu opened this issue Jan 3, 2023 · 1 comment
Labels

Comments

@lanttu
Copy link

lanttu commented Jan 3, 2023

This is rather specific issue and I think it might be related to Scala having Option type, but I'm not familiar with Scala. If option.proto file has a message Option, ScalaPB fails with following error.

/test/option/OptionProto.scala: Tried to write the same file twice.

The problem seems to be a specific to the word "option". Using any other word as the file and message names does not cause problem, for example Value in value.proto works just fine.

// option.proto
syntax = "proto3";

package test;

message Option {
}
@thesamet
Copy link
Contributor

thesamet commented Jan 3, 2023

Thanks for reporting. I was able to reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants