# Does the compiler remove these when I upgrade?

**URL:** <https://community.gatling.io/t/does-the-compiler-remove-these-when-i-upgrade/1819>\
**Category:** Gatling (Open-Source)\
**Created:** [December 16, 2014, 7:47pm UTC](https://community.gatling.io/t/does-the-compiler-remove-these-when-i-upgrade/1819 "2014-12-16T19:47:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fugmag](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@fugmag](https://community.gatling.io/u/fugmag)\
**Post date:** [December 16, 2014, 7:47pm UTC](https://community.gatling.io/t/does-the-compiler-remove-these-when-i-upgrade/1819/1 "2014-12-16T19:47:15Z")

</div>

The migration guide for Gatling 2.1.1 states:

`

### Compiler runs standalone

Gatling itself doesn’t compile the Simulations anymore and expects that the simulations are already compiled. This means that gatling.sh/gatling.bat and the Maven plugin runs the compiler prior to running Gatling. Consequently, a few options in gatling.conf have been removed:

- `gatling.core.disableCompiler`
- `gatling.core.zinc.jvmArgs`

`

Going into my IDEAPathHeper it looks like this:

`

```auto
import scala.tools.nsc.io.File
import scala.tools.nsc.io.Path.string2path

object IDEPathHelper {

 val gatlingConfUrl = getClass.getClassLoader.getResource("gatling.conf").getPath
 val projectRootDir = File(gatlingConfUrl).parents(2)

 val mavenSourcesDirectory = projectRootDir / "src" / "test" / "scala"
 val mavenResourcesDirectory = projectRootDir / "src" / "test" / "resources"
 val mavenTargetDirectory = projectRootDir / "target"
 val mavenBinariesDirectory = mavenTargetDirectory / "test-classes"

 val dataDirectory = mavenResourcesDirectory / "data"
 val requestBodiesDirectory = mavenResourcesDirectory / "request-bodies"

 val recorderOutputDirectory = mavenSourcesDirectory
 val resultsDirectory = mavenTargetDirectory / "results"

 val recorderConfigFile = (mavenResourcesDirectory / "recorder.conf").toFile
}

```

`

It shows red on the .tools and File in the text above and complains when trying to Rebuild solution in IntelliJ.

What should I do to get rid of these warnings?

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [December 16, 2014, 7:50pm UTC](https://community.gatling.io/t/does-the-compiler-remove-these-when-i-upgrade/1819/2 "2014-12-16T19:50:47Z")

</div>

Remove .toFile, it’ll work.
