Pasting duplication in IDEA Ultimate 2021.3.1
Answered
When I paste into the editor, it duplicates the paste if the selected item was selected with a mouse
Example put "trade" into copy buffer
in the following sentence "Loaded buy schedule rules"
If you double click "buy" and cmd-v paste, you get "tradetrade"
If you hit cmd-z, one of the "trade" goes away
If you select with keyboard, it does not double up on the paste
Edit: Running on macOs Monterey 12.1
Please sign in to leave a comment.
Cannot reproduce. Do you use any clipboard managers software? Any 3rd plugins? Could you please provide idea.log file (Help | Show Log in ... action) after IDE restart and reproducing this? Thanks.
It seems it is interacting with PopClip https://apps.apple.com/us/app/popclip/id445189367?mt=12
Previous version of IntelliJ did not, only 2021.3.1 seems to be an issue. I have rolled back to 2021.3 to make sure then reinstalled .1
Iff popclip is on and I double click a word to highlight it and I paste while the cursor is still over the highlighted word, then it pastes twice (a cmd-z will remove one instance of the pasted text). If popclip is turned off OR I move the cursor off of the highlighted text, then just a single paste happens.
I have attached the log file. at 10:41 is with popclip turned on and the double paste happens. 10:42 is with popclip turned off
I found out I can get around it by adding it to the exclude list for popclip. But I have not had trouble before with it.
Thank you for the details! I have created the https://youtrack.jetbrains.com/issue/IDEA-286437 issue to track this.
I confirm it's PopClip for MacOS related. Adding Idea to the list of exceptions fixes the issue.