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

**URL:** https://discourse.gohugo.io/t/apparent-file-locking-problem-while-using-hugo-server-and-intellij/7494
**Category:** support
**Created:** [July 18, 2017, 2:23pm UTC](https://discourse.gohugo.io/t/apparent-file-locking-problem-while-using-hugo-server-and-intellij/7494 "2017-07-18T14:23:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hourback](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hourback/32/3658_2.png) [@hourback](https://discourse.gohugo.io/u/hourback)
#### Post date: [July 18, 2017, 2:23pm UTC](https://discourse.gohugo.io/t/apparent-file-locking-problem-while-using-hugo-server-and-intellij/7494/1 "2017-07-18T14:23:47Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![hourback](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hourback/32/3658_2.png) [@hourback](https://discourse.gohugo.io/u/hourback)
#### Post date: [July 18, 2017, 3:00pm UTC](https://discourse.gohugo.io/t/apparent-file-locking-problem-while-using-hugo-server-and-intellij/7494/2 "2017-07-18T15:00:29Z")

</div>

I think I might have fixed it!

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

 ![](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/d/d93496abffec86c9dde9acf6bc1fbfe4572e7cce.png)

Doesn’t make obvious sense to me but whatever.
