Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What would cause Intellij to suddenly get really slow with scala?

I have been using Intellij 12 to build a Play Framework 2 app for about a month. It's been fine up until yesterday. Now when ever I try to write code in one of the scala templates Intellij gets very very very slow. Like it takes 5-10 seconds to enter a couple new lines. What would cause this to start happening all of a sudden and how do I fix it?

I tried increasing my vm options to the following, but it didn't help:

-Xms256m
-Xmx800m
-XX:MaxPermSize=512m
-XX:ReservedCodeCacheSize=128m
-XX:+UseCodeCacheFlushing
-XX:+UseCompressedOops

Edit: Could a recent Intellij or plugin update have destroyed performance?

Edit: I updated my Scala and Play plugins and it didn't help.

like image 405
TomahawkPhant Avatar asked Oct 06 '22 02:10

TomahawkPhant


2 Answers

FYI..

Try to update to new version (0.2.16)

http://plugins.jetbrains.com/plugin?pluginId=7080

like image 157
korrawit Avatar answered Oct 13 '22 12:10

korrawit


I had a similar problem, switching to sun java from openjdk fixed it. Also check if it isn't doing something in the background like indexing or sth like that. Just a guess. Cheers!

Edit: google-fu resulted in one potencionally interesting fact. A lot of scala users are experiencing this. It looks that scala is only available in intellij 12 and this is a first version, so it's probably a problem on the side of scala devs.. if I manage to find a workaround I'll post it here. Brace for scala updates until then ;)

like image 27
Dropout Avatar answered Oct 13 '22 12:10

Dropout