Fix PhpStorm text paste issue > stdout.in Ievgen Kuzminov IT blog

Fix PhpStorm text paste issue

Nov 22, 2013, 3:23:30 PM

phpstorm

Symptoms : Text copied from any other source except PhpStorm itself (Chrome, text editor etc.) can't be pasted in PhpStorm. But text is being in buffer - as it could be pasted in other editors.

The reason is in Oracle Java 8 (according to this bug report).

TL;DR

  • Install Oracle Java 7
  • Profit !

Setup Oracle Java 7 in Ubuntu

Install via WebUpd8 PPA

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

and change default java version this way look what versions are available

sudo update-alternatives --config javac

There is 1 choice for the alternative javac (providing /usr/bin/javac).

  Selection Path Priority Status
------------------------------------------------------------
  0 /usr/lib/jvm/java-7-oracle/bin/javac 1074 auto mode
  1 /usr/lib/jvm/java-7-oracle/bin/javac 1074 manual mode
* 2 /usr/lib/jvm/java-8-oracle/bin/javac 1089 manual mode
Press enter to keep the current choice[*], or type selection number: 

just select needed number (for example 1) and press Enter.

Restart system after

comments powered by Disqus
Ievgen
Kuzminov "iJackUA"
Web Team Lead
at MobiDev (Kharkiv, Ukraine)
Code in Ruby and Elixir, but still love PHP. Explore ES6 and Vue.js. Explore databases, use Ubuntu and MacOS, think about IT people and management

Notes