Zinc compiler error

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:

https://github.com/mballoni/Gatling-error-example

Any tips??

Thank you

  1. Change folder name from configuratin to configuration

  2. Add the following import to Protocol.scala:

import io.gatling.core.Predef._

Ops, my mistake.

I fixed the problems and it worked, however when I try to use a CSV feeder I’m facing another error:

12:26:14.717 [main][ERROR][ZincCompiler.scala:140] i.g.c.ZincCompiler$ - /tmp/test/gatling-example/src/test/scala/br/com/example/fullstack/BasicSimulation.scala:10: could not find implicit value for parameter configuration: io.gatling.core.config.GatlingConfiguration

12:26:14.718 [main][ERROR][ZincCompiler.scala:140] i.g.c.ZincCompiler$ - val searchFeeder = csv(“pre-prod/search_worlds.csv”).circular

12:26:14.719 [main][ERROR][ZincCompiler.scala:140] i.g.c.ZincCompiler$ - ^

12:26:15.288 [main][ERROR][ZincCompiler.scala:140] i.g.c.ZincCompiler$ - one error found

12:26:15.290 [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)

I’m really confused on what’s going on here.

This is getting even weirder.
I made a setup from scratch, again, and the same error (the CSV above) persists.

Odly an old project don’t show this problem but I can’t spot the difference that might be the cause.

I updated the github projeto in order to reproduce this error.

I found out the problem.
The simulation classes should be placed at the root package. Just that.
Weird log though

What does this mean and how to fix that?