If you're having paste issue with PhpStorm under linux, in most cases it is a problem related to java version.
If you're using java1.8 ... well that's the problem.
You should use ORACLE java 1.7 ( openjdk does not work as well ).
How to export the right version of jdk?
1 - Find your phpstorm.sh
2 - At the beginning of the file add:
for example, uder ubuntu it is usually located under
3 - Start / Restart phpstorm
Happy coding :)