# Anyone else having Swift 6.1 problems on Linux (VS Code, Arch, swiftly)?

**URL:** <https://forums.swift.org/t/anyone-else-having-swift-6-1-problems-on-linux-vs-code-arch-swiftly/79041>\
**Category:** Using Swift\
**Tags:** arch-linux, vscode, swiftly\
**Created:** [April 2, 2025, 9:50pm UTC](https://forums.swift.org/t/anyone-else-having-swift-6-1-problems-on-linux-vs-code-arch-swiftly/79041 "2025-04-02T21:50:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RandomHashTags](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/randomhashtags/32/24259_2.png) [@RandomHashTags](https://forums.swift.org/u/RandomHashTags)\
**Post date:** [April 2, 2025, 9:50pm UTC](https://forums.swift.org/t/anyone-else-having-swift-6-1-problems-on-linux-vs-code-arch-swiftly/79041/1 "2025-04-02T21:50:33Z")

</div>

I've noticed a few problems effecting my projects:

- background indexing barely works
- the `.swift-version` file not doing anything
- unit tests crashing if a `#require` throws an error with a custom comment
- excessive recompilation of the project and dependencies

I have to go back to 6.0.3 and uninstall 6.1 to get Swift usable.

My setup:

- Arch Linux: 6.13.8-arch1-1
- Swiftly: 1.0.0
- VS Code: 1.98.2
- Swift: 6.1, 6.0.3

---

<div class="post-metadata">

**Author:** ![xtremekforever](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/xtremekforever/32/43018_2.png) [@xtremekforever](https://forums.swift.org/u/xtremekforever)\
**Post date:** [April 3, 2025, 12:53am UTC](https://forums.swift.org/t/anyone-else-having-swift-6-1-problems-on-linux-vs-code-arch-swiftly/79041/2 "2025-04-03T00:53:13Z")

</div>

That's weird, because I've noticed that Swift 6.1 works better for me on Ubuntu 24.04 and AlmaLinux 9 (RHEL 9) than 6.0.3 did. I'll have to check the #require thing tho since I've never used it...

---

<div class="post-metadata">

**Author:** ![cmcgee1024](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/cmcgee1024/32/40419_2.png) [@cmcgee1024](https://forums.swift.org/u/cmcgee1024)\
**Post date:** [April 8, 2025, 1:55pm UTC](https://forums.swift.org/t/anyone-else-having-swift-6-1-problems-on-linux-vs-code-arch-swiftly/79041/3 "2025-04-08T13:55:11Z")

</div>

> - the `.swift-version` file not doing anything

Can you elaborate more on this part? Do `swiftly use` and `swift --version` report 6.1 when the `.swift-version` file is set to `6.1.0`?

---

<div class="post-metadata">

**Author:** ![RandomHashTags](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/randomhashtags/32/24259_2.png) [@RandomHashTags](https://forums.swift.org/u/RandomHashTags)\
**Post date:** [April 8, 2025, 9:12pm UTC](https://forums.swift.org/t/anyone-else-having-swift-6-1-problems-on-linux-vs-code-arch-swiftly/79041/4 "2025-04-08T21:12:11Z")

</div>

After doing more research (on the swiftly's readme) it turns out you need to manually remove previous swiftly data on the file system when upgrading to 1.0.0, which I did not do as I use the AUR (and Arch isn't officially supported). Swiftly and toolchain hot switching (and the `.swift-version` file) now works as expected, but the VS Code Extension no longer works (more specifically the sourcekit-lsp and CodeLLDB). Looks like I need to try other versions of Swiftly instead of `ubuntu24.04`, or do some tinkering.
