Zinc compiler error

1,959 views
Skip to first unread message

Marcelo Balloni

unread,
Apr 26, 2017, 10:06:20 AM4/26/17
to Gatling User Group
 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

Barry Perez

unread,
Apr 26, 2017, 11:06:31 AM4/26/17
to Gatling User Group

1) Change folder name from configuratin to configuration

2) Add the following import to Protocol.scala:

import io.gatling.core.Predef._

Marcelo Balloni

unread,
Apr 26, 2017, 11:27:19 AM4/26/17
to Gatling User Group
 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.

Marcelo Balloni

unread,
Apr 26, 2017, 3:07:37 PM4/26/17
to Gatling User Group
 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.


On Wednesday, April 26, 2017 at 12:06:31 PM UTC-3, Barry Perez wrote:

Marcelo Balloni

unread,
May 2, 2017, 2:24:03 PM5/2/17
to Gatling User Group
 I found out the problem.
 The simulation classes should be placed at the root package. Just that. 
 Weird log though

Dimitar Vasilev

unread,
Jul 3, 2018, 6:48:32 AM7/3/18
to Gatling User Group
What does this mean and how to fix that?
Reply all
Reply to author
Forward
0 new messages