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

use enum name as constant prefix #364

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jidibinlin
Copy link

No description provided.

@google-cla
Copy link

google-cla bot commented Aug 5, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Slids
Copy link
Member

Slids commented Aug 6, 2022

I like the idea, but you
a) Need to sign the cla
b) fix the tests (sadly not the ABCL test, there's something going on I haven't figured out)
c) We need to make an anouncement as this is a breaking change.

@Slids Slids requested a review from cgay August 6, 2022 17:14
Copy link
Contributor

@cgay cgay left a comment

Choose a reason for hiding this comment

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

Please also update the tests. See the failed test run here: https://github.com/qitab/cl-protobufs/runs/7701713796?check_suite_focus=true

@jidibinlin
Copy link
Author

I will find a time to solve this issue

@jidibinlin
Copy link
Author

I have fixed the enum-mapping-test.lisp file。 But still can`t pass all the test。
image

@@ -292,11 +292,13 @@ message, and of +<value_name>+ when the enum is defined at top-level."
(let* ((enum-name (symbol-name type))
(dot (position #\. enum-name :test #'char= :from-end t))
;; Use C/C++ enum scope.
(scope (and dot (subseq enum-name 0 dot)))
(scope enum-name
;; (and dot (subseq enum-name 0 dot))
Copy link
Member

Choose a reason for hiding this comment

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

why is this just commented?

@@ -81,6 +81,8 @@ and functionality for working with them."
:proto-pathname "google/protobuf/any.proto")
(:protobuf-source-file "source_context"
:proto-pathname "google/protobuf/source_context.proto")
(:protobuf-source-file "descriptor"
Copy link
Member

Choose a reason for hiding this comment

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

why add descriptor?

Copy link
Member

Choose a reason for hiding this comment

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

(not saying not to, just asking why)

Copy link
Contributor

@cgay cgay Jun 1, 2023

Choose a reason for hiding this comment

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

It's already there on lines 78-79.

@cgay cgay removed their assignment Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants