-
Notifications
You must be signed in to change notification settings - Fork 408
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
Add code action to generate toString()
method
#736
Comments
@fbricon Same as |
Working on it |
Gerrit patch submitted: https://git.eclipse.org/r/134075 |
Patch has been accepted to jdt.ui/jdt.core.manipulation. This can be closed. |
@jjohnstn we still need to make changes on the jdt.ls side, to call the new code |
@fbricon yes, my bad. |
@yaohaizh can you work on this one for the next release or should I assign it to someone else? |
@fbricon Sure, I'll follow this issue on this release. |
The upstream GenerateToStringOperation.java implementation puts "generate the text edit" and "apply the text edit" steps together. But eclipse.jdt.ls only needs the first step and return a text edit to vscode client to apply. In order to reuse this part of code, we may need more refactoring on this class. GenerateHashCodeEqualsOperation.java is a good reference. |
@jjohnstn I'd like to submit a PR to the upstream code, but not familiar with the contribution process. Is there any doc to explain the PR and environment setup process for eclipse.jdt.ui code? thanks. |
Hi Jinbo,
eclipse.jdt.ui uses gerrit, not github so you need to do a patch and submit
it via gerrit.
For details on submitting to Eclipse via gerrit, see:
https://wiki.eclipse.org/Gerrit
For eclipse.jdt.ui, your patch must apply to the latest patch on the master
branch. If you are attempting to edit/test inside an Eclipse workspace,
you will need eclipse.jdt.core, eclipse.platform.text and possibly
eclipse.jdt.debug, eclipse.jdt, and eclipse.platform.text checked out to
have latest and greatest. All of those are also in git repos which you can
find via google.
Let me know if you have further questions after reading the web-page.
…-- Jeff J.
On Mon, Mar 4, 2019 at 4:08 AM Jinbo Wang ***@***.***> wrote:
@jjohnstn <https://github.com/jjohnstn> I'd like to submit a PR to the
upstream code, but not familiar with the contribution process. Is there any
doc to explain the PR and environment setup process for eclipse.jdt.ui
code? thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#736 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABKRbYuGU_0umdOEPjuNX4ucy76Oq_njks5vTOKmgaJpZM4ViCCr>
.
|
@jjohnstn Thanks for the information. Having a try. Will update the status if everything goes well. |
@jjohnstn i have one question about the testing. In addition to unit test, how can i manually verify my change locally? |
Tried "Debug as Eclipse Application", the new change is hit. |
Submitted a gerrit patch https://git.eclipse.org/r/#/c/138149/. But the build failed at an irrelevant test case. I tried rerun the failed case locally and it passed. @jjohnstn Is there any way to rerun the ci job for gerrit patch? |
You can't rerun unless you are a comitter (it is annoying). The ways to do this are either to wait until another patch is committed and then rebase or else make a small change (e.g. change a comment) and update the gerrit patch (keeping the same changeid). |
Got that. Roland has helped re-trigger the build. Thanks. |
The changed was merged (targeting 4.12 M1) but should also be in the next I-build of JDT. |
@rgrunber Great, thanks. Will try to finish the change on jdt.ls side. |
@testforstephen so I'll target this one for the next release. Let me know if we need to punt it to the next one |
i should have time to do it in next week. |
No description provided.
The text was updated successfully, but these errors were encountered: