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

Scripting multiple protos that call the same sub-proto: The sub-proto will be created multiple times, causing the enum ctrl broken. #313

Open
SallyTYT opened this issue Sep 21, 2023 · 1 comment
Labels
Affects Scripted Code Will change how generated code looks type: enhancement New feature or request

Comments

@SallyTYT
Copy link

SallyTYT commented Sep 21, 2023

I have multiple protos, all of which have called /google/protobuf/descriptor.proto. When I script these protos separately, it works. When I script more than one proto together, it will report an error as shown below.

image

I checked the uncompleted codes, and found it seems that the /google/protobuf/descriptor.proto was created multiple times, causing the enum ctrl to be broken as shown below,

image

Workaround:
Scripting these protos separately, although the sub-proto will have multiple copies.

AB#2528274

@SallyTYT SallyTYT changed the title Scripting multiple protos that call the same sub-proto: The sub-proto will be created multiple times. Scripting multiple protos that call the same sub-proto: The sub-proto will be created multiple times, causing the enum ctrl broken. Sep 21, 2023
@Rohith-Grandhi Rohith-Grandhi added type: enhancement New feature or request Affects Scripted Code Will change how generated code looks labels Sep 27, 2023
@SallyTYT
Copy link
Author

It seems that inserting "Remove Duplicates From 1D Array.vim" here could solve this issue.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Affects Scripted Code Will change how generated code looks type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants