Editor losing focus after run tab closes

I’ve had this problem for about a year now, and I never found a solution: I use Phpstorm for web development, so I need to compile scss to css frequently. The way that is set up currently is that I have the built-in filewatcher running node-sass whenever the files change. Now, if the process fails because there is an error in the scss Syntax, the "run" tab pops open from below to notify me of that. After that mistake is fixed and the process finishes without an error, the tab closes again, but instead of just closing, it pulls the keyboard focus out of the editor over to the Project/Files sidebar, so that I have to either press Esc or click back into the Editor. This issue is extremely annoying to me since the filewatcher sometimes runs while typing and produces errors simply because it's trying to compile unfinished lines of code, so it just randomly kicks me into the Project bar while I’m trying to write a bunch of scss. Apparently only one other person that I know of beside me also has this issue, so I’m guessing its a settings-related mistake on my part, I’m just completely out of ideas as to what I’ve set wrong. Anybody got any ideas?


Would it be possible to record a short screencast to illustrate the issue?



Here's a short clip of the issue:


Unfortunately, there's no way to work this issue around, it's a bug: https://youtrack.jetbrains.com/issue/IDEA-187010

I'll add a link to this post to the issue thread in a private comment.

Sorry for the inconvenience!


Please sign in to leave a comment.