When you try to start an actor system, System.create throws the following exception:
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Akka.FSharp.Serialization.exprSerializationSupport(ActorSystem system)
at Akka.FSharp.System.create(String name, Config config)
at <StartupCode$FSI_0042>.$FSI_0042.main@() in
Here is the script to reproduce:
let configWithExtension = Configuration.parse """akka {
extensions = ["Akka.Cluster.Tools.PublishSubscribe.DistributedPubSubExtensionProvider,Akka.Cluster.Tools"]
actor {
provider = cluster
}
}"""
let system = System.create "mySystem" configWithExtension
Here is the script to reproduce:
let configWithExtension = Configuration.parse """akka { extensions = ["Akka.Cluster.Tools.PublishSubscribe.DistributedPubSubExtensionProvider,Akka.Cluster.Tools"] actor {
provider = cluster } }""" let system = System.create "mySystem" configWithExtension