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
SR-15679 SourceKit-LSP: Adding platform requirement in Package.swift is not propagated
Issue Description:
When a new file is created the SourceKit-LSP server doesn't seem to register it. You get basic function completion for standard swift objects, but none of the symbols in your project are available.
This was replicated in the new vscode plugin https://github.com/swift-server/vscode-swift but can also be replicated using the sample extension code that is part of the SourceKit-LSP project.
The current version of the vscode plugin does not send `workspace/didChangeWatchedFiles` events but I have a PR which does this swift-server/vscode-swift#98 For example new file will send
Even with sending these events I am not seeing this working. I can see the merged PR #376 which adds support for at least parsing these events, but from what I can see it doesn't actually process the add/remove event.
The text was updated successfully, but these errors were encountered:
Specifically, the bug is that SourceKit-LSP does not update the compiler arguments we get from SwiftPM. Similarly, when you modify a Package.swift file those changes are not reflected. This is a long-standing known issue: https://github.com/apple/sourcekit-lsp/#caveats.
I just put together a rudimentary implementation of file watching in SourceKit-LSP, which reloads the entire package when a new file gets added: [#443| #443]
Environment
VSCode 1.6.3.2
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: 3cdf5d87457acc541fc8aa99b1919384
is duplicated by:
Issue Description:
When a new file is created the SourceKit-LSP server doesn't seem to register it. You get basic function completion for standard swift objects, but none of the symbols in your project are available.
This was replicated in the new vscode plugin https://github.com/swift-server/vscode-swift but can also be replicated using the sample extension code that is part of the SourceKit-LSP project.
The current version of the vscode plugin does not send `workspace/didChangeWatchedFiles` events but I have a PR which does this swift-server/vscode-swift#98 For example new file will send
Even with sending these events I am not seeing this working. I can see the merged PR #376 which adds support for at least parsing these events, but from what I can see it doesn't actually process the add/remove event.
The text was updated successfully, but these errors were encountered: