-
Notifications
You must be signed in to change notification settings - Fork 254
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 Language Server server crashes #635
Comments
I replaced the precondition check in "fixitTitle" as below. Have not run any suite of tests on the patch other than the case which I stumbled upon above.
|
Tests supplied with the package pass:
|
rdar://100158700 |
I suspect you are using an editor that has snippets disabled, in which case this issue should be fixed by #602. To verify that this is indeed the case could you:
|
I will try the suggested test later. More information for now, editor/VSCode version in use is:
Searching on "snippets" in Settings shows seven relevant hits. (Four for "Text Editor" and three for "Emmet".) All are enabled except "Extensions:Emmet Show Suggestions as Snippets". |
And I don't know if "Emmet" is actually relevant. Researching WTH that is now. |
Hi guys, var a: [Int] = []
a.append() This does appear to be fixed on main. If we could bring what fixed it across to the 5.7 branch that would be great. The above code seems pretty common place. |
Ah, I see what’s happening now. We disable snippet support when translating the insertion response for code completion (because LSP doesn’t support snippets for code completion). I opened a PR to get this fixed in 5.7 but can’t make any promises when this will end up in a toolchain release. #646 |
I merged the fix into |
Repeatable crash when used with VSCode on Linux Mint.
Installed with: swift-5.7-RELEASE-ubuntu22.04.tar.gz
Code to cause it to crash - second line below:
Stack trace of thread 29377:
#0 0x0000555b412ae48e n/a (/home/user/Applications/swift-5.7-RELEASE-ubuntu22.04/usr/bin/sourcekit-lsp + 0x9e648e)
The text was updated successfully, but these errors were encountered: