-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Sema] Fix Issue #63291 by aligning error messages for failure to infer generic parameter and opaque result type #63567
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
Conversation
@AnthonyLatsis This is the new pull request. |
Hey @Rajveer100, Thanks for the pull request. @AnthonyLatsis’s comment from your previous pull request are still valid though. I would suggest that
For each of these bullet points, there should be plenty of tutorial on the internet of how to do them either on the command line or in whichever Git GUI you are using. |
Sure! I was just gonna do that...These mistakes are increasing my knowledge a ton! Thanks! |
OK, I just thought that you opened a new pull request because you didn’t know that you could force push, so I thought I’d mention some tips. |
c146cbd
to
f74ddd1
Compare
Made the changes! |
There is still a redundant merge commit. |
It’s not really required but since we are already doing a Git lesson: You can get rid of the merge commit in your git history by rebasing on top of Just pull recent |
Pulling is probably not necessary in this case, but if you choose to, make sure to use |
c893fdd
to
28dba82
Compare
Done! |
One more suggestion. Consider placing the bug link in the commit message body rather than the title. For example:
To edit the commit message: |
28dba82
to
a4597a9
Compare
Amended! |
@swift-ci please smoke test macOS |
Smoke Test failed, what could be the cause? |
The failure is due to network flakiness; not your fault. Can you get rid of the merge commit before we re-trigger the tests? |
…d opaque result type Fixes swiftlang#63291.
637355b
to
33bf9d2
Compare
I have done it, you may re-trigger the smoke test! @AnthonyLatsis |
@swift-ci Please smoke test |
Hey Alex! @ahoppen What would be some next potential projects I can contribute to and what would be the steps for |
6448393
to
33bf9d2
Compare
@swift-ci Please smoke test |
It really depends what you want to work on. Regarding the compiler, I don’t know of any specific issues in the compiler codebase that would be good to get started, apart from the list of issues marked as “good first issue” that you probably already know about: https://github.com/apple/swift/labels/good%20first%20issue. Keep in mind there are other projects like swift-syntax or sourcekit-lsp in the Swift ecosystem that are mostly implemented in Swift and which also have issues that would be good starting points. Especially for those projects that have fewer issues, it might also be worth scanning through issues that aren’t marked as “good first issue” as we sometimes forget to add the label. Regarding swift-evolution: You can participate in review threads on forums.swift.org. I would advise against trying to create an evolution proposal unless you’ve got a specific language change in mind that you want to push. As for GSoC, in the past years we have always proposed ideas on swift.org and announced them in the forums but you can also propose your own project ideas if you have any. If you do, I would suggest you create forum post that describes your project idea. |
Thanks! I will look into the other repos as well, and regarding |
I would suggest that you start with smaller issues to get familiar with the code base, the process etc. and not start with implementing entire language features – that’s what I did as well when I got started contributing to Swift as well. Regarding GSoC, I would keep an eye out in the forums because that would be the place we make any announcements regarding GSoC 2023. |
Cool! I too actually thought the same, that with time, I can contribute and gain experience and gradually understand everything by usual search, mistakes and grinding, instead of asking questions to do this and that, but had to do a little journalism approach (I had even asked Anthony if I bothered him a lot!) at least in the beginning to get a push start and setup my arena! |
Why are the tests failing by the way? (I mean the first time Anthony mentioned due to network issue.) |
The Linux failure seems to be some kind of CI hiccup. It looks like the run was aborted by the force push and didn’t re-trigger when I requested it. @swift-ci Please smoke test Linux |
macOS test has passed, others have failed. |
@swift-ci please smoke test Linux |
Nice! So only windows test remains. |
We can skip the Windows build, it cannot possibly be related to a change like this if the other jobs passed. |
Aligned the errors messages caused by failure to inferring generic parameter and opaque result type, by changing the messages appropriately in the
include/swift/AST/DiagnosticsSema.def
file, as well as the tests filetest/type/opaque.swift
andtest/type/opaque_return_named.swift
.Resolves #63291.