You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
swift-driver version: 1.26.21 Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
Target: x86_64-apple-macosx12.0
Additional Detail from JIRA
Votes
0
Component/s
SourceKit-LSP
Labels
Bug
Assignee
None
Priority
Medium
md5: 89724567877c11a1c46009ed4a119296
duplicates:
SR-15633 SourceKit-LSP: New files are not registered and changes to Package.swift are not reflected
Issue Description:
If I add an asynchronous function to a package SourceKit-LSP complains that concurrency is only available in macOS 10.15 or newer as it should. If I then go to my Package.swift and add a platform requirement eg
platforms: [.macOS(.v10_15)],
SourceKit-LSP stills continues to display the error, until I restart the sourcekit-lsp server.
Platform requirements in the Package.swift should be propagated as soon as the Package.swift is saved, not after restarting the server.
The text was updated successfully, but these errors were encountered:
This is the same underlying issue as SR-15633. We are not updating the compiler arguments we get from SwiftPM after changes to the package (adding/removing/renaming files, or editing Package.swift).
Environment
swift-driver version: 1.26.21 Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
Target: x86_64-apple-macosx12.0
Additional Detail from JIRA
md5: 89724567877c11a1c46009ed4a119296
duplicates:
Issue Description:
If I add an asynchronous function to a package SourceKit-LSP complains that concurrency is only available in macOS 10.15 or newer as it should. If I then go to my Package.swift and add a platform requirement eg
SourceKit-LSP stills continues to display the error, until I restart the sourcekit-lsp server.
Platform requirements in the Package.swift should be propagated as soon as the Package.swift is saved, not after restarting the server.
The text was updated successfully, but these errors were encountered: