I’ve used gatling for quite some time, however I’m facing a problem that I don’t understand what could be wrong.
I created a BasicSimulation scala class and “everything” was working fine for the initial test of the basic setup.
This setups was created using the latest maven plugin (2.2.5).
I’m executing using the command “mvn gatling:test”.
However from the moment that I splitted some configuration to an external object I started facing some weird zinc compiler errors, such as:
11:04:54.002 [main][ERROR][ZincCompiler.scala:140] i.g.c.ZincCompiler$ - /tmp/test/gatling-example/src/test/scala/br/com/example/fullstack/BasicSimulation.scala:16: not found: value Protocol
11:04:54.003 [main][ERROR][ZincCompiler.scala:140] i.g.c.ZincCompiler$ - ).protocols(Protocol.HTTP)
11:04:54.004 [main][ERROR][ZincCompiler.scala:140] i.g.c.ZincCompiler$ - ^
11:04:54.033 [main][ERROR][ZincCompiler.scala:140] i.g.c.ZincCompiler$ - /tmp/test/gatling-example/src/test/scala/br/com/example/fullstack/configuratin/Protocol.scala:7: could not find implicit value for parameter configuration: io.gatling.core.config.GatlingConfiguration
11:04:54.034 [main][ERROR][ZincCompiler.scala:140] i.g.c.ZincCompiler$ - var HTTP = http.baseURL(“http://www.pudim.com.br/”)
11:04:54.034 [main][ERROR][ZincCompiler.scala:140] i.g.c.ZincCompiler$ - ^
11:04:54.042 [main][ERROR][ZincCompiler.scala:140] i.g.c.ZincCompiler$ - two errors found
11:04:54.044 [main][ERROR][ZincCompiler.scala:155] i.g.c.ZincCompiler$ - Compilation crashed
sbt.compiler.CompileFailed: null
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:105)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
Wich is really weird because all my imports and package declaration are right.
I uploaded this example in a github project:
Any tips??
Thank you