Apparent file-locking problem while using "hugo server" and IntelliJ

Hi, all.

Using IntelliJ on Windows 10 I’m getting this message in my terminal in which I ran “hugo server”:

2017/07/18 09:03:15 error: open C:\Hugo\sites\example.com\config.toml: The process cannot access the file because it is being used by another process.

I’ve tried Notepad++ to perform the same operations I did with IntelliJ and didn’t get that error. I haven’t found any IntelliJ settings that would change its file-locking behavior. I’ve looked around for more general issues with live-reload scenarios and IntelliJ but didn’t find anything yet.

First I was running hugo server from a Cygwin terminal but then tried cmd.exe and got the same results.

Is there a workaround for this?

Thanks in advance!

I think I might have fixed it!

I disabled this option and so far I have not had this problem again:

Doesn’t make obvious sense to me but whatever.