ScalaPB icon indicating copy to clipboard operation
ScalaPB copied to clipboard

Option message in option.proto fails

Open lanttu opened this issue 2 years ago • 1 comments

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 {
}

lanttu avatar Jan 03 '23 06:01 lanttu

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

thesamet avatar Jan 03 '23 06:01 thesamet