# Gatling below error on IntelliJ with maven

**URL:** https://community.gatling.io/t/gatling-below-error-on-intellij-with-maven/8217
**Category:** Gatling (Open-Source)
**Tags:** gatling-academy
**Created:** [August 17, 2023, 3:04pm UTC](https://community.gatling.io/t/gatling-below-error-on-intellij-with-maven/8217 "2023-08-17T15:04:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Reet](https://avatars.discourse-cdn.com/v4/letter/r/edb3f5/32.png) [@Reet](https://community.gatling.io/u/Reet)
#### Post date: [August 17, 2023, 3:04pm UTC](https://community.gatling.io/t/gatling-below-error-on-intellij-with-maven/8217/1 "2023-08-17T15:04:37Z")

</div>

scalac: Error: ‘java.lang.String dotty.tools.dotc.reporting.Message.msg()’  
java.lang.NoSuchMethodError: ‘java.lang.String dotty.tools.dotc.reporting.Message.msg()’  
at dotty.tools.xsbt.DelegatingReporter.doReport(DelegatingReporter.java:47)  
at dotty.tools.dotc.reporting.Reporter.issueUnconfigured(Reporter.scala:158)  
at dotty.tools.dotc.reporting.Reporter.go$1(Reporter.scala:181)  
at dotty.tools.dotc.reporting.Reporter.issueIfNotSuppressed(Reporter.scala:200)  
at dotty.tools.dotc.reporting.Reporter.report(Reporter.scala:203)  
at dotty.tools.dotc.report$.error(report.scala:69)  
at dotty.tools.dotc.typer.ErrorReporting$.errorType(ErrorReporting.scala:31)  
at dotty.tools.dotc.typer.TypeAssigner.notAMemberErrorType(TypeAssigner.scala:173)  
at dotty.tools.dotc.typer.TypeAssigner.notAMemberErrorType$(TypeAssigner.scala:16)  
at dotty.tools.dotc.typer.Typer.notAMemberErrorType(Typer.scala:115)  
at dotty.tools.dotc.typer.Typer.typedSelect(Typer.scala:679)  
at dotty.tools.dotc.typer.Typer.typeSelectOnTerm$1(Typer.scala:687)  
at dotty.tools.dotc.typer.Typer.typedSelect(Typer.scala:724)  
at dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:2897)  
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:2990)  
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3058)  
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3062)  
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3174)  
at dotty.tools.dotc.typer.Applications.realApply$1(Applications.scala:934)  
at dotty.tools.dotc.typer.Applications.typedApply(Applications.scala:1094)  
at dotty.tools.dotc.typer.Applications.typedApply$(Applications.scala:352)  
at dotty.tools.dotc.typer.Typer.typedApply(Typer.scala:115)  
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:2928)  
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:2991)  
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3058)  
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3062)  
at dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:3111)  
at dotty.tools.dotc.typer.Typer.typedStats(Typer.scala:3130)  
at dotty.tools.dotc.typer.Typer.typedClassDef(Typer.scala:2562)  
at dotty.tools.dotc.typer.Typer.typedTypeOrClassDef$1(Typer.scala:2916)  
at dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:2920)  
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:2990)  
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3058)  
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3062)  
at dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:3084)  
at dotty.tools.dotc.typer.Typer.typedStats(Typer.scala:3130)  
at dotty.tools.dotc.typer.Typer.typedPackageDef(Typer.scala:2692)  
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:2961)  
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:2991)  
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3058)  
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3062)  
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3174)  
at dotty.tools.dotc.typer.TyperPhase.typeCheck$$anonfun$1(TyperPhase.scala:44)  
at dotty.tools.dotc.typer.TyperPhase.typeCheck$$anonfun$adapted$1(TyperPhase.scala:54)  
at scala.Function0.apply$mcV$sp(Function0.scala:42)  
at dotty.tools.dotc.core.Phases$Phase.monitor(Phases.scala:437)  
at dotty.tools.dotc.typer.TyperPhase.typeCheck(TyperPhase.scala:54)  
at dotty.tools.dotc.typer.TyperPhase.runOn$$anonfun$3(TyperPhase.scala:88)  
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)  
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)  
at scala.collection.immutable.List.foreach(List.scala:333)  
at dotty.tools.dotc.typer.TyperPhase.runOn(TyperPhase.scala:88)  
at dotty.tools.dotc.Run.runPhases$1$$anonfun$1(Run.scala:247)  
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)  
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)  
at scala.collection.ArrayOps$.foreach$extension(ArrayOps.scala:1321)  
at dotty.tools.dotc.Run.runPhases$1(Run.scala:263)  
at dotty.tools.dotc.Run.compileUnits$$anonfun$1(Run.scala:271)  
at dotty.tools.dotc.Run.compileUnits$$anonfun$adapted$1(Run.scala:280)  
at dotty.tools.dotc.util.Stats$.maybeMonitored(Stats.scala:67)  
at dotty.tools.dotc.Run.compileUnits(Run.scala:280)  
at dotty.tools.dotc.Run.compileSources(Run.scala:195)  
at dotty.tools.dotc.Run.compile(Run.scala:179)  
at dotty.tools.dotc.Driver.doCompile(Driver.scala:35)  
at dotty.tools.xsbt.CompilerBridgeDriver.run(CompilerBridgeDriver.java:88)  
at dotty.tools.xsbt.CompilerBridge.run(CompilerBridge.java:22)  
at sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:91)  
at org.jetbrains.jps.incremental.scala.local.IdeaIncrementalCompiler.compile(IdeaIncrementalCompiler.scala:57)  
at org.jetbrains.jps.incremental.scala.local.LocalServer.doCompile(LocalServer.scala:52)  
at org.jetbrains.jps.incremental.scala.local.LocalServer.compile(LocalServer.scala:30)  
at org.jetbrains.jps.incremental.scala.remote.Main$.compileLogic(Main.scala:209)  
at org.jetbrains.jps.incremental.scala.remote.Main$.$anonfun$handleCommand$1(Main.scala:192)  
at org.jetbrains.jps.incremental.scala.remote.Main$.decorated$1(Main.scala:182)  
at org.jetbrains.jps.incremental.scala.remote.Main$.handleCommand(Main.scala:189)  
at org.jetbrains.jps.incremental.scala.remote.Main$.serverLogic(Main.scala:165)  
at org.jetbrains.jps.incremental.scala.remote.Main$.nailMain(Main.scala:105)  
at org.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala)  
at jdk.internal.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)  
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.base/java.lang.reflect.Method.invoke(Method.java:568)  
at com.facebook.nailgun.NGSession.runImpl(NGSession.java:312)  
at com.facebook.nailgun.NGSession.run(NGSession.java:198)

---

<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: [August 17, 2023, 3:30pm UTC](https://community.gatling.io/t/gatling-below-error-on-intellij-with-maven/8217/2 "2023-08-17T15:30:39Z")

</div>

When you imported your project in IntelliJ, you’ve selected Scala 3 while Gatling works with Scala 2. You have to reimport and select the proper Scala version.

Critical recommendation: if you’re not a Scala developper, go with Gatling Java, not Gatling Scala.

---

<div class="post-metadata">

### Author: ![Reet](https://avatars.discourse-cdn.com/v4/letter/r/edb3f5/32.png) [@Reet](https://community.gatling.io/u/Reet)
#### Post date: [August 18, 2023, 8:58am UTC](https://community.gatling.io/t/gatling-below-error-on-intellij-with-maven/8217/3 "2023-08-18T08:58:03Z")

</div>

Thank you for the solution and recommendation.

---

<div class="post-metadata">

### Author: ![system](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/b/b148e0742de35c6280726cabf3ecd3de2d320f63.png) [@system](https://community.gatling.io/u/system)
#### Post date: [September 17, 2023, 8:58am UTC](https://community.gatling.io/t/gatling-below-error-on-intellij-with-maven/8217/4 "2023-09-17T08:58:03Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
