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

fix(pilota-thrift-parser): compatible with separators after syntax item blocks in idl #284

Merged
merged 4 commits into from
Nov 5, 2024

Conversation

Ggiggle
Copy link
Contributor

@Ggiggle Ggiggle commented Nov 5, 2024

Motivation

Referred to idl parser issue, the separator character ';' or ',' after syntax item blocks such as struct, enum, service, or typedef are not allowed, even thought this syntax is not stated in the idl rfc, there are some implement lib, such as thrift and thriftpy2, supporting this feature.

Solution

We will be compatible with this writing method and allow the use of "," or ";" delimiters after various syntax blocks, including struct, enum, typedef, service and const value.

@Ggiggle Ggiggle requested review from a team as code owners November 5, 2024 10:16
PureWhiteWu
PureWhiteWu previously approved these changes Nov 5, 2024
@Ggiggle Ggiggle enabled auto-merge (squash) November 5, 2024 13:09
@Ggiggle Ggiggle merged commit 16ad613 into main Nov 5, 2024
10 checks passed
@Ggiggle Ggiggle deleted the fix/idl_parser branch November 5, 2024 13:17
@kubroid
Copy link

kubroid commented Nov 6, 2024

One more note on this - in case pilota fails to parse IDL, volo creates empty volo.yml in current directory and for next run its required to delete this file. I know this is not an often oteration, but still a bit confusing.

@PureWhiteWu
Copy link
Member

Thanks for this feedback, could you please create an issue for this and we will optimize this in the future.

@kubroid
Copy link

kubroid commented Nov 6, 2024

sure! cloudwego/volo#523

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

Successfully merging this pull request may close these issues.

4 participants