OSX - Intellij Idea 2017.2.5 - Scala - Weird spaces are being automatically added to code
Just updated to the newest version of Intellij Idea, and having some very strange issues that I've never seen before. Tried googling but really couldn't find anyone having any similar problems, so thought I'd ask here if anyone would know what this is about. Here's a link to a gif which illustrates the issue I'm having.
Basically, when I type code quickly, it somehow adds two spaces into the middle of the code. It always happens the same way, i.e. the two spaces are added before the last character before a dot. E.g. "foo.bar" would become "fo o.bar".
The issue only occurs when typing quickly (as you can see in the gif). If you take a short pause (e.g. type foo first, and then dot), then it never happens.
I went through the Idea preferences so many times, disabling all sorts of things and trying to figure out what would cause this, but I just have no idea. Would be lovely to get this fixed, it's really annoying to manually remove the spaces all the time...
Please sign in to leave a comment.
Do you get it only with Scala files? Any 3rd plugins installed?
Starting with default settings can help (rename/remove IDE settings folders).
Yes only happens with Scala files. Tried with Java, html and javascript files and no issues there.
I tried with default settings, and still happens.
I disabled the Scala plugin (version 2017.2.7) and then the problem no longer happens, but that plugin is kind of necessary.
Actually I found the same bug reported in Scala plugin issue tracker (https://youtrack.jetbrains.com/issue/SCL-12291).