-
Notifications
You must be signed in to change notification settings - Fork 113
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
Show number of differences in the Compare editor #504 #731
Show number of differences in the Compare editor #504 #731
Conversation
@lathapatil : could you please avoid merge commits? We don't allow them to be merged into master. |
@lathapatil : you can see that you have now 3 commits in total, with two of them being merge commits. Please locally (not in github, but in your IDE) create new branch based on latest master, cherry pick a single commit with your changes and force push to |
I do realize now that "Update branch" button in this PR is actually doing merge commits and instead I should have used Sync fork and pull with rebase in my local then force pushed the branch. |
Thanks for these steps , I was about to ask for them as how to make it correct . |
69f2655
to
54ef19d
Compare
@iloveeclipse Could you please verify if commits are fine now and also review the PR ? |
Commit looks good, but there is one related test fail, see https://ci.eclipse.org/platform/job/eclipse.platform/job/PR-731/4/testReport/junit/org.eclipse.compare.tests/TextMergeViewerTest/testToolbarLabelContribution/
|
Actually this testcase is not failing in my local workspace . I am wondering how should I debug this and fix ? Can you suggest further on how do I get this setup where the testcase is failing.. |
I can reproduce it. I'm on RHEL 7, Java 17, latest platform SDK build. What is your config?
Looking at the code, it calls some tasks asynchronously, so I assume you could get the test failing on a different system / with more/less cores enabled (have no idea about your setup). Anyway, please apply the patch here and the test should pass:
|
Thanks for identifying the issue further and the fix . I am working in Windows 10 , Java 17 and I do realize that testcase is passing in below platform build Eclipse Platform 4.30.0.v20230927-1800 When I updated yesterday to latest one , it is failing now with the same error Eclipse IDE for Eclipse Committers (includes Incubating components) |
I've quickly tested the feature. In general, works a s expected, but it has a bug.
To reproduce: |
@iloveeclipse Thanks for the detailed test . |
"No changes" sounds good. |
I will check and fix this bug ! |
Please also note that one can do edits in the compare editor and change number of diffs without triggering "whitespace" button. |
If I am not wrong this (Edit in compare editor and save which updates diff Label) is working fine. Only on trigger of "Ignore white space" Label is not getting updated |
54ef19d
to
96b3051
Compare
Test fail due eclipse-platform/eclipse.platform.releng.aggregator#1463 and eclipse-equinox/equinox#382. Once that is sorted out, we can rebase & see if that helps. |
The test fails as before, for same reason. Please try to adopt test as proposed above. |
96b3051
to
2606077
Compare
cbdc94f
to
eb2f10e
Compare
@iloveeclipse I have fixed the points received in the review . Let me know if anything is still not working out in this feature. |
The errors are coming from tycho eclipse-tycho/tycho#3019 |
Is this issue resolved ? If yes, how can I retrigger the build to see latest status? |
It has been resolved in Tycho, but the Tycho version used in the builds here has not been updated yet. Builds should work again once eclipse-platform/eclipse.platform.releng.aggregator#1530 is merged (or maybe once we adapt the project configurations so they conform to Tycho 4.0.4 requirements). |
@lathapatil The build can now be retriggered. You only have to manually rebase your changes on current master branch, as the version bump for |
7125299
to
bb7ec44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I've tested locally, all the changes are now properly reflected in the diff label.
I've reviewed the rest, please fix the two issues I've commented on and we are ready to merge after that.
...dles/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java
Outdated
Show resolved
Hide resolved
team/bundles/org.eclipse.compare/compare/org/eclipse/compare/LabelContributionItem.java
Outdated
Show resolved
Hide resolved
3a38216
to
78f0ee4
Compare
5745de8
to
5e223c5
Compare
Review points incorporated Fixes eclipse-platform#504
5e223c5
to
6108837
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your patience & contribution. Looks good now.
Show number of differences (Ex: 6 Differences) in the toolbar of compare editor
which matches "Change markers" next to the scroll bar in compare editor
Fixes #504
Tested only in Linux and Windows OS