ClipMenu icon indicating copy to clipboard operation
ClipMenu copied to clipboard

Incompatible with PHPStorm

Open drobinson opened this issue 10 years ago • 12 comments

I haven't spent enough time on this to really give a very helpful description, but basically the problem is that when using ClipMenu I do not get what I expect when pasting into PHPStorm. It seems PHPStorm is trying to be smart and have its own clipboard history. This is most likely a PHPStorm issue only, but I would like to know how this application works when pasting a selected history item. Does it move the selected entry into the system clipboard and then execute ⌘-V?

PHPStorm will only paste the last thing copied from within the editor until I simply switch away from and back to the editor. After that, ClipMenu works as expected until I copy something from within the editor.

drobinson avatar Apr 29 '14 18:04 drobinson

A possible workaround is detailed here: http://youtrack.jetbrains.com/issue/IDEA-114252#comment=27-678923

nebbian avatar Apr 30 '14 01:04 nebbian

as mentioned in that issue, it is bug in java in general, I wonder if clipmenu could do a simple workaround. I know it's not its place, but it may not harm, could it possible unfocus the active window, focus something else, and then regain the focus to the active window? that might fix it.

hanoii avatar Jul 07 '14 17:07 hanoii

+1 for a fix/workaround on this. Even though its not a direct issue with ClipMenu its not fixable right now by the PHPStorm so if there is an easy work around it would help out a lot.

tomschlick avatar Sep 08 '14 00:09 tomschlick

I read some discussions about this issue include @nebbian's posted one, and tried 30 days demo version of PHPStorm 7.1.4 by myself. I realized the problem.

I think this should be solved by JetBrains' guys but it seems that it's not so easy problem for them.

I might try to solve this, but sorry for you guys, its priority is not so high. I would decide it after the fix to be compatible with Yosemite.

Thank you for your patience.

naotaka avatar Sep 08 '14 06:09 naotaka

It looks like ClipMenu works fine with my PHPStorm 8

tenitski avatar Oct 03 '14 10:10 tenitski

Actually it is still broken in PHPStorm 8, sorry for the prev confusing comment

tenitski avatar Oct 06 '14 06:10 tenitski

The same problem, but with ClipboardHistory in Yosemite.

honzadavidcz avatar Oct 29 '14 13:10 honzadavidcz

I have built a testing version for this issue. Please try it, and give me your feedback.

http://www.clipmenu.com/blog/2014/10/31/compatibility-testing-with-jetbrains-ides/

naotaka avatar Oct 31 '14 02:10 naotaka

It works great! The bad thing is we lost a lot of preferences.

senechaux avatar Mar 04 '15 09:03 senechaux

Hi @naotaka , thanks for this version. Like @senechaux I lost preferences and back history when testing this, which is a shame, but not too big of a problem. However, in my case what it does is simply lets the JIDea clipboard manager take over. Which is not my intention. I will go back to trying the JIdea workaround (see http://stackoverflow.com/questions/26611642/external-clipboard-manager-breaking-in-jidea/26611643#26611643 ) and see if that solves it.

In any case -- appreciate you looking into this!!!

shirki avatar Apr 15 '15 14:04 shirki

@shirki This seems to work for me in PHPStorm 8.0.3 - and seems to be the most "correct" way to solve this...there should be a user setting in PHPStorm for "Use System Clipboard"

@naotaka if you agree, I would close this issue. Thanks for the help.

drobinson avatar May 26 '15 21:05 drobinson

Confirming that it fixed the issue for me too

tenitski avatar May 27 '15 01:05 tenitski