Duplicate Scenario Name error message

Enhancement Request: Add the duplicate name to the error message.

The message looks like this:

Exception in thread “main” java.lang.IllegalArgumentException: Scenario names must be unique but found a duplicate

It would be very helpful if it said which name was duplicated. I’ve got 20+ in one simulation, and it would be nice to know what I’m looking for. :slight_smile:

Hi John !

Indeed, knowing which scenario names are duplicated would be nice.
As always, contributions are welcomed :slight_smile:
Little hint : https://github.com/gatling/gatling/blob/master/gatling-core/src/main/scala/io/gatling/core/scenario/Simulation.scala#L101 :wink:



Done: https://github.com/gatling/gatling/issues/2531

What’s really odd is, there wasn’t really a duplicate. I could not figure it out, and yet eventually the problem went away. Go figure!

Maybe some Zinc incremental compilation issue.

Hmm. That would be very bad. How could I rule that out?

That’s just purely hypothetical. Zinc uses sbt’s incremental compiler, so it’s quite safe…
If you have a doubt, you can clean the target directory to trigger a full compilation.