# gatling 2.2.0 release : compilation error

**URL:** <https://community.gatling.io/t/gatling-2-2-0-release-compilation-error/3005>\
**Category:** Gatling (Open-Source)\
**Created:** [May 17, 2016, 3:33pm UTC](https://community.gatling.io/t/gatling-2-2-0-release-compilation-error/3005 "2016-05-17T15:33:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claude\_Perche](https://avatars.discourse-cdn.com/v4/letter/c/bc8723/32.png) [@Claude\_Perche](https://community.gatling.io/u/Claude_Perche)\
**Post date:** [May 17, 2016, 3:33pm UTC](https://community.gatling.io/t/gatling-2-2-0-release-compilation-error/3005/1 "2016-05-17T15:33:51Z")

</div>

Hi  
I generated a scenarii wjth gatling recorder tool,  
I unable to compile the scenario , below the explanation of compilation failure

generated instructions examples :

val scn = scenario(“RecordedSimulation”)  
.exec(http(“request\_0”)  
.get("/portail/")  
.resources(http(“request\_1”)  
.get(uri1 + “/portail/portail.nocache.js”)  
.headers(headers\_1)  
**.check(bodyString.is(RawFileBody(“RecordedSimulation\_0001\_response.txt”))), …**

processed compilation :

Sources indirectly invalidated by:  
product: Set()  
binary dep: Set()  
external source: Set()  
2016-05-17 17:10:10,391 DEBUG [main] ZincCompiler$: All initially invalidated sources: Set(D:\gatling-charts-highcharts-bundle-2.2.0-bundle\user-files\simulations\vericonsult\RecordedSimulation.scala)

2016-05-17 17:10:10,406 INFO [main] ZincCompiler$: Compiling 1 Scala source to D:\gatling-charts-highcharts-bundle-2.2.0-bundle\target\test-classes…  
2016-05-17 17:10:10,918 DEBUG [main] ZincCompiler$: Running cached compiler 54e81b21, interfacing (CompilerInterface) with Scala compiler version 2.11.8  
2016-05-17 17:10:10,920 DEBUG [main] ZincCompiler$: Calling Scala compiler with arguments (CompilerInterface):

2**016-05-17 17:10:17,212 ERROR [main] ZincCompiler$: D:\gatling-charts-highcharts-bundle-2.2.0-bundle\user-files\simulations\vericonsult\RecordedSimulation.scala:41: type mismatch;**  
**found : io.gatling.core.body.RawFileBody**  
**required: io.gatling.core.session.Expression[String]**  
**(which expands to) io.gatling.core.session.Session =\> io.gatling.commons.validation.Validation[String]**  
**2016-05-17 17:10:17,213 ERROR [main] ZincCompiler$: .check(bodyString.is(RawFileBody(“RecordedSimulation\_0001\_response.txt”))),**  
**2016-05-17 17:10:17,213 ERROR [main] ZincCompiler$: ^**  
**2016-05-17 17:10:17,214 ERROR [main] ZincCompiler$: D:\gatling-charts-highcharts-bundle-2.2.0-bundle\user-files\simulations\vericonsult\RecordedSimulation.scala:45: type mismatch;**  
**found : io.gatling.core.body.RawFileBody**  
**required: io.gatling.core.session.Expression[String]**  
**(which expands to) io.gatling.core.session.Session =\> io.gatling.commons.validation.Validation[String]**

Thanks for your help

Best regards  
patrick

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [May 17, 2016, 3:51pm UTC](https://community.gatling.io/t/gatling-2-2-0-release-compilation-error/3005/2 "2016-05-17T15:51:42Z")

</div>

Hi,

This is a known issue: [https://github.com/gatling/gatling/issues/2996](https://github.com/gatling/gatling/issues/2996)  
It will be shipped in 2.2.1 to be released soon.

Regards,
