-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Bad diagnostic about memberwise init
not being public
#78362
Comments
Hello!, I would like to be assigned on this issue. |
Hello, can I also be assigned on this issue? |
Hello, This is my first time poking around the swift source and I wanted to make sure if I am looking at the right places. Not sure if I missed it but in the DiagnosticsSema.def I could not find anything related to "must be declared public because it matches a requirement in public protocol" |
it can be a little tricky at first to reverse lookup the source from the diagnostic text because many of them are string 'templates' and the nouns & adjectives get substituted in. in this case the relevant diagnostic message is likely this one. you can then use the diagnostic ID ( |
So from what I have learned, this issue would require a simple boolean flag to append the diagnostic message. Now from my understanding the rawRepresentable protocol requires that the initializer must be declared public and you cannot have that with the implicit memberwise initialization. So a "fix-it" option would be to just add the code snippet for explicit public initialization. My only question is, which files would I have to change to have the "fix-it" option for the Xcode. Also, is there any testing guidelines that I need to follow to on my side for the context based implementation of the diagnosis |
The first two things I think you should check off the list when dealing with issues that require code changes are:
Then you know the issue is still relevant and are equipped to start debugging. In this case, you can start off by using the |
@devnumber7 It looks like its been a couple months, are you still working on this issue? If not, I'd like to take it over. |
@rdingman yeah I haven't given up on this one. I ran into some compiler issues before so I had redo some stuff again, and I was stuck with C projects. But yeah I plan on submitting this week. |
@devnumber7 Thanks, sounds good. Let me know if you'd like to collaborate. |
@rdingman Hey! I would like to collaborate with you, if you're still open |
@devnumber7 That works for me. Let me know how to get into contact with you and we can work on it. |
@rdingman I am available through discord if that's what you use |
Description
No response
Reproduction
Expected behavior
This diagnostic is not great:
Environment
Swift version 6.2-dev (LLVM 1a588e5b044c46f, Swift 55189ba)
Additional information
No response
The text was updated successfully, but these errors were encountered: