# Distributed Actors Help

**URL:** <https://forums.swift.org/t/distributed-actors-help/64173>\
**Category:** Distributed Actors\
**Created:** [April 4, 2023, 12:29am UTC](https://forums.swift.org/t/distributed-actors-help/64173 "2023-04-04T00:29:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Genaro-Chris](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/genaro-chris/32/24997_2.png) [@Genaro-Chris](https://forums.swift.org/u/Genaro-Chris)\
**Post date:** [April 4, 2023, 12:29am UTC](https://forums.swift.org/t/distributed-actors-help/64173/1 "2023-04-04T00:29:51Z")

</div>

I can't really use distributed actors feature for experimentation on my linux device because of the lack of different actor systems. Even the swift distributed actor repository doesn't compile because of version couldn't be resolved 🤦  
Any help @ktoso

---

<div class="post-metadata">

**Author:** ![ktoso](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ktoso/32/44526_2.png) [@ktoso](https://forums.swift.org/u/ktoso)\
**Post date:** [April 4, 2023, 12:40am UTC](https://forums.swift.org/t/distributed-actors-help/64173/2 "2023-04-04T00:40:47Z")

</div>

Hi there,  
can you be more clear about what doesn't compile?

What versions of tools are you using, and what is the error you're seeing.

Available systems today are:

- The distributed actors cluster builds fine and is verified using CI and periodic source compatibility builds.
  - [GitHub - apple/swift-distributed-actors: Peer-to-peer cluster implementation for Swift Distributed Actors](https://github.com/apple/swift-distributed-actors/)
  - to double check, I've just verified and it builds fine.

- or the sample transport implementation, if you'd like something with a smaller implementation to learn how actor system implementations can be written
  - [GitHub - apple/swift-sample-distributed-actors-transport: Distributed actors transport example, for feature review](https://github.com/apple/swift-sample-distributed-actors-transport)
  - also confirmed it builds fine using the provided instructions.

- the local testing actor system that ships with Swift if you just want to play around with the isolation semantics
  - [LocalTestingDistributedActorSystem | Apple Developer Documentation](https://developer.apple.com/documentation/distributed/localtestingdistributedactorsystem)

Happy to assist with any issues you might be facing, but you'll have to provide more concrete information about what's not working as expected.

---

<div class="post-metadata">

**Author:** ![Genaro-Chris](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/genaro-chris/32/24997_2.png) [@Genaro-Chris](https://forums.swift.org/u/Genaro-Chris)\
**Post date:** [April 4, 2023, 6:38am UTC](https://forums.swift.org/t/distributed-actors-help/64173/3 "2023-04-04T06:38:12Z")

</div>

Error:

 ![error](https://global.discourse-cdn.com/swift/original/3X/1/f/1ff9ab932158fe7a31282b0d25df3de538f1dd24.png)

Swift version:

 ![version](https://global.discourse-cdn.com/swift/original/3X/9/a/9a54439ada44e523e433220810e645c77d40b0fa.png)

---

<div class="post-metadata">

**Author:** ![ktoso](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ktoso/32/44526_2.png) [@ktoso](https://forums.swift.org/u/ktoso)\
**Post date:** [April 4, 2023, 12:08pm UTC](https://forums.swift.org/t/distributed-actors-help/64173/4 "2023-04-04T12:08:43Z")

</div>

This looks like a broken package cache tbh. The message does not make any sense, there are no conflicting versions here and the version definitely exists.

I suspect the following would fail on your machine:  
`cd ~/.swiftpm/cache/repositories/swift-nio-???????? && git fetch --tags && git tag -l;` i.e. not contain the expected tags.

You may want to wipe the cache:

```swift
rm -rf ~/.swiftpm/cache/

```

and all build artifacts to be double sure you get everything nice and clean built:

```swift
rm -rf .build
rm -rf Samples/.build

```

and try again.

--

I've also double checked resolution on a Linux host and as expected it worked fine (since we test this project on Linux hosts all the time, but I double checked).

---

<div class="post-metadata">

**Author:** ![Genaro-Chris](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/genaro-chris/32/24997_2.png) [@Genaro-Chris](https://forums.swift.org/u/Genaro-Chris)\
**Post date:** [April 6, 2023, 6:23am UTC](https://forums.swift.org/t/distributed-actors-help/64173/5 "2023-04-06T06:23:11Z")

</div>

Thanks, it really worked 💪

---

<div class="post-metadata">

**Author:** ![ktoso](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ktoso/32/44526_2.png) [@ktoso](https://forums.swift.org/u/ktoso)\
**Post date:** [April 6, 2023, 7:22am UTC](https://forums.swift.org/t/distributed-actors-help/64173/6 "2023-04-06T07:22:30Z")

</div>

Hooray, glad it was only a cache issue.

If you have any questions please don’t hesitate to reach out, I’m more than happy to help 👍

---

<div class="post-metadata">

**Author:** ![Genaro-Chris](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/genaro-chris/32/24997_2.png) [@Genaro-Chris](https://forums.swift.org/u/Genaro-Chris)\
**Post date:** [April 7, 2023, 8:58am UTC](https://forums.swift.org/t/distributed-actors-help/64173/7 "2023-04-07T08:58:11Z")

</div>

So glad but is there any comprehensive tutorial or documentation on how to use distributed actors?

Where can I get other Actor Systems such as SampleWebSocketActorSystem not the LocalTestingDistributedActorSystem?

---

<div class="post-metadata">

**Author:** ![ktoso](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ktoso/32/44526_2.png) [@ktoso](https://forums.swift.org/u/ktoso)\
**Post date:** [April 7, 2023, 9:25am UTC](https://forums.swift.org/t/distributed-actors-help/64173/8 "2023-04-07T09:25:27Z")

</div>

Reference style documentation for the cluster is hosted here: [ClusterSystem - Documentation](https://swiftpackageindex.com/apple/swift-distributed-actors/main/documentation/distributedcluster)

Reference style documentation for the language feature we sadly didn't yet add to the Swift Book on [Swift.org](http://Swift.org) but that will appear there eventually. The holdup has mostly been logistics, but now that the swift book is hosted publicly, the adding of the documentaiton is much easier than before so we'll pick it up eventually. I mostly recommend the WWDC talk as primary "how to use" resource for now.

> [@Genaro-Chris](#):
>
> Where can I get other Actor Systems such as SampleWebSocketActorSystem

In the resources linked from the WWDC talk: [Meet distributed actors in Swift - WWDC22 - Videos - Apple Developer](https://developer.apple.com/videos/play/wwdc2022/110356/) "the tic tac fish" sample app.
