PhpStorm extremely slow while editing vue.js files

Viewed 2914

I'm using PhpStorm 2017.1.4 with the vue.js plugin. The problem I have is: this plugin is extremely slow and makes coding impossible as you type and you don't see what you type only with 1 to 2 seconds lag. It takes 95% of allocated memory. It takes 50% of the CPU usage.

The project I'm working on is new and I have only one file open of less than 70 lines.

Settings offers to install for vue.js plugin v171.4424.63 I tried to install an earlier version of the plugin v171.3780.63 from https://plugins.jetbrains.com/plugin/9442-vue-js but the result is the same.

Installing more recent versions wasn't supported by PhpStorm and showed it in red with the message "plugin is not compatible with current PhpStorm installation".

I already opened an issue on https://youtrack.jetbrains.com/issue/WI-36715. But what do I do until they fix the issue? code on notepad?

Is there anything I can do to speed things up?

4 Answers

Did this and solved my problem

Tell php storm to ignore the /public dir for indexing.

  1. Right-click a dir (like public, or public/js),
  2. Choose mark directory as and select excluded.
  3. PHPStorm will no longer index it when changes are made.

I had similar issue and for me the problem was with multiple copies of generated javascript files by Encore / Webpack in public folder. Therefore, PhpStorm indexed all duplicates and was using all the duplicates for code completion / code navigation.

Excluding the folder with generated javascript files (mark directory as excluded in PhpStorm) helped!

(well, I should have excluded such folder long time ago)...

Related