gatling 2.2.0 release : compilation error

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):

2016-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

Hi,

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

Regards,