-
Notifications
You must be signed in to change notification settings - Fork 7
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
Shadowing error when field names matches package #86
Comments
Thanks for the report, I expect that you can work around this by locking the version of prost-reflect to version 0.14.0 which didn't have andrewhickman/prost-reflect#126. I'll take a look at fixing this. |
This is also a re-occurrence of #57 |
Thanks for taking a look so quickly. I'll pin it to that version for now as a temporary workaround 👍. |
@dnaka91 Hopefully this is fixed in prost-reflect 0.14.2 |
Works like a charm, thanks for the quick fix. |
I encountered a false positive shadowing error when the field name of a message matches the package name of an imported message. This is accepted by
protoc
butprotox
detects it as a shadowing issue.Minimal reproducible example
Having 2 Protobuf schemas with the following content:
In
other.proto
In
sample.proto
Error message
Current workaround
When renaming the field the issue can be worked around, but changing the field names is not really an option in my bigger setup, as they are already being used in several places.
The text was updated successfully, but these errors were encountered: