-
Notifications
You must be signed in to change notification settings - Fork 144
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
Fix wrong implementation of TEXT_PLAIN_UTF8 transfer feature #879
Fix wrong implementation of TEXT_PLAIN_UTF8 transfer feature #879
Conversation
1) The utf-8 content should be same as in UTF8_STRING, it just should use different label/type id. 2) The change in ClipboardProxy.setData() was non functional and makes no sense, it only leaks memory/wastes time See eclipse-platform#863 See eclipse-platform#851
@the-snowwhite : please test this implementation with your original use case in #851. |
@iloveeclipse
I have fully tested the functionality of #863 wia functional testing in the eclipse debugger running in a wayland session. Then after introducing the 3 lines in ClipboardProxy.java the debugger now stopped in javaToNative and data was presented to the wayland clipboard. Please suggest functional code changes in functional |
OK I hope it works I like the much more simple style than what chatgpt4 beaten with a (stick and large scissors) could provide... |
What I'm asking you now: please test this patch with Wayland! Not what you might have tested before in some debug session! If it is not working under Wayland, it means, the code you've added in The use case (as far as I could understand it, because it is not clearly described) was:
If I understood it right, the text copied to clipboard from Eclipse should be able paste to "kate" editor under Wayland. Note: it is not the I have no Wayland, so I can't check, but current code state is definitely wrong. @mickaelistria, @akurtakov, @trancexpress : could you please check this PR & use case, if you have Wayland? If this PR doesn't work under Wayland, I would propose a PR reverting #863 for RC1 as it definitely does wrong things on X11. |
Yes i'm just having some issues as my main eclipse installation for SWT building has crapped out showing over 861 errors |
@iloveeclipse |
@the-snowwhite So do I get it right you successfully tested that patch and are OK with it being merged? |
@the-snowwhite : once again: can you clearly answer to the question: have you successfully tested that patch and are OK with it being merged? @mickaelistria : can you please test this patch - as obviously you were able test the original one? |
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.
@iloveeclipse
The title is mis leading
This is a functional change for an already functional verified and merged PR
Will you please wait til after the freeze ?
No, because original patch is NOT OK. Can you please answer to the question have you successfully tested that patch and are OK with it being merged? |
@iloveeclipse |
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.
Using the ClipboardExample
Without patches from #863 , I can copy from StyledText to Qt widget (I'm using Carla application as example of a KDE/Qt application) but I cannot copy from Carla/Qt/Kde... to StyledText.
With current master including patches from #863, I can copy/paste in both directions (that what I tested before merging)
With this patch, I can also copy in both directions.
So I'm totally in favor of merging this patch, which achieves the same result with simpler code and removing some extra unnecessary processing.
Thanks @iloveeclipse for the polishing here.
Thanks @mickaelistria, merging. |
See #863 See #851