Are there notes (or docs) on how to use a nightly development snapshot with projects (swift-distributed-actors)?

Hi folks! For anyone else looking into building the swift-distributed-actors library, I found the following to work for me, but only using CLion:

  1. Set the Swift toolchain in CLion to the latest nightly one (for me that was 10-28)
  2. Remove the .plugin from Package.swift in some other editor (NOT CLion)
  3. Open the project in CLion, resolve the Swift package dependencies
  4. Close CLion
  5. Re-add the .plugin to Package.swift
  6. Re-open the project in CLion, but DO NOT resolve Swift packages within CLion
  7. Add DYLD_LIBRARY_PATH to the run configuration
  8. Build/Run tests :tada:

I suspect the reason this works is that CLion stores that it already resolved the dependencies inside the .idea folder. Additionally, CLion invokes the build command with the --skip-update flag.

3 Likes