New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multi-module use cases are completely broken: could not open compilation database #666
Comments
more forum context: https://forums.swift.org/t/vscode-swift-getting-really-flaky-again/61403/2 it seems to have something to do with |
rdar://102321349 |
When trying to open the project in the devcontainer locally, I’m getting the following error. Do you know what I might be doing wrong here?
@adam-fowler Is the devcontainer setup something that the Swift VSCode extension supports (and that is actively being used)? Could it be that the VSCode extension is building the package on the host (with a toolchain from the host) but writing the build products to the containers build directory? |
i don’t get that error when i open the example project locally, but according to this SO question it could have to do with the service name so maybe try renaming the service name |
AFAICT there’s nothing actionable for sourcekit-lsp here, so I’m closing the issue. Feel free to re-open it if you believe there’s a SourceKit-LSP issue that needs to be fixed. |
multi-module use cases appear to be completely broken. if i have a module named
A
with example code:i get normal highlighting and LSP features, though it emits an error to the console:
if i go to another module that imports
A
, sourcekit-lsp doesn’t seem to work at all.it also emits a similar error to the console:
but because it also emits the same error in
A.swift
, i am not sure if the error is related to this issue.here is a full example project, including a
.devcontainer
directory for reproduction:vscode-example.zip
the specific toolchain i am using currently is
swift-DEVELOPMENT-SNAPSHOT-2022-11-11-a
, but the problem has been going on for most of november.The text was updated successfully, but these errors were encountered: