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

Patch for breaking protoc change. #1587

Merged
merged 2 commits into from
Mar 12, 2019
Merged

Patch for breaking protoc change. #1587

merged 2 commits into from
Mar 12, 2019

Conversation

JoshDreamland
Copy link
Member

@JoshDreamland JoshDreamland commented Mar 11, 2019

The Protocol Buffer compiler, protoc, has started appending final to generated class definitions as of 3.7. Because of this, our extension classes will no longer build. This removes our dependency on the ability to inherit proto classes, at the cost of using -> instead of . to refer to proto fields from the Data classes.

I've filed a bug about the breaking change as protocolbuffers/protobuf#5869, but do not plan to wait for the resolution, since users are having problems now.

The Protocol Buffer compiler, protoc, has started appending `final` to generated class definitions as of 3.7. Because of this, our extension classes will no longer build. This removes our dependency on the ability to inherit proto classes, at the cost of using `->` instead of `.` to refer to proto fields from the Data classes.
Noticed the tile loop's counter was unused except to access the tile by that index. Removed.
@codecov
Copy link

codecov bot commented Mar 11, 2019

Codecov Report

Merging #1587 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1587   +/-   ##
=======================================
  Coverage   17.62%   17.62%           
=======================================
  Files         166      166           
  Lines       17143    17143           
=======================================
  Hits         3022     3022           
  Misses      14121    14121

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 087fc1d...61022ab. Read the comment docs.

Copy link
Contributor

@RobertBColton RobertBColton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked out the branch and did a clean build of the frontend. I tested a variety of games covering most of the features that could be affected from audio to tiles and graphics. I did not find any regressions running the games through LateralGM or emake. Your workaround is also pretty straight forward and does not require too many additions. These are the reasons I am approving the pull request.

@JoshDreamland JoshDreamland merged commit fa4fc18 into master Mar 12, 2019
@JoshDreamland JoshDreamland deleted the Proto37hack branch March 12, 2019 01:31
RobertBColton added a commit to enigma-dev/RadialGM that referenced this pull request Mar 13, 2019
Pull in Josh's patch from enigma-dev for Protobuf 3.7.
enigma-dev/enigma-dev#1587

Also, include the generated proto headers directly as was decided on the enigma-dev repo.
enigma-dev/enigma-dev#1591
enigma-dev/enigma-dev#1589
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

Successfully merging this pull request may close these issues.

2 participants