-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
sourcekit-lsp
crashes when opening .swift
files in VSCode
#331943
Labels
Comments
Same error.
Do you find any way to fix it?
{
pkgs ? import <nixpkgs> { },
}:
with pkgs;
mkShell.override { inherit (swiftPackages) stdenv; } rec {
vscode-settings = writeText "settings.json" (
builtins.toJSON {
"swift.path" = "${swiftPackages.swift-unwrapped}/bin";
"swift.sourcekit-lsp.serverPath" = "${sourcekit-lsp}/bin/sourcekit-lsp";
"lldb.library" = "${swiftPackages.swift-unwrapped}/lib/liblldb.so";
"lldb.launch.expressions" = "native";
}
);
packages = [
swift
swiftpm
swift-corelibs-libdispatch
swiftPackages.Foundation
swiftPackages.Dispatch
];
shellHook = ''
LD_LIBRARY_PATH+=":${swift-corelibs-libdispatch}/lib";
mkdir .vscode &>/dev/null
cp --force ${vscode-settings} .vscode/settings.json
'';
} SourceKit Language Server logs from sswg.swift-lang VSCode extension (I use Codium)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
sourcekit-lsp
crashes when opening.swift
files with:Steps To Reproduce
.swift
file in an editorExpected behavior
Auto-complete and code analysis from the language server.
Additional context
A related bug is open on the Swift repository: swiftlang/swift#67975
It hints that there might be a problem in how
sourcekit-lsp
gets built so I am opening this here. The suggestion there is thatsourcekit-lsp
should statically link against the above symbol.The original issue I opened was: swiftlang/vscode-swift#988. There the
vscode-swift
people are wondering whysourcekit-lsp
is in a different package to begin with.Notify maintainers
@dtzWill @trepetti @dduan @Trundle @stephank
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: