Closed xboxdevcat closed 1 year ago
seems like this issue https://github.com/apple/sourcekit-lsp/issues/635#issuecomment-1270136278
this temp script file also will crash in swift 5.7 version. no matter whether use xcode-build-server
import Cocoa
var a = [1]
a.append()
you case may because without the flags from xcode-build-server, lsp can't know what is UIKit or UIViewController, error early and not triggle the missing arguments error?
Thanks for your reply.I downloaded the source code of sourcekit-lsp branch release/5.7
, used swift build
to build sourcekit-lsp code, and got a new executable file sourcekit-lsp. Replace the new sourcekit-lsp executable program to /usr/bin/sourcekit-lsp. Now this crash problem is solved.
OS version MacOS 13.0.1
Editor neovim v0.8.1 with coc.nvim extension and vscode 1.74.0 with Swift extension
Simple code sourcekit-lsp crashed when I typed
self.test()
. According to my test, when typing a function with only one parameter that use no argument label, if no parameters are filled in, sourcekit-lsp will crash.vscode sourcekit-lsp output
if don't use
xcode-build-server
(there are no buildServer.json and .compile files in the project root directory), sourcekit-lsp works fine. Is this problem caused by sourcekit-lsp? Or is it a problem with xcode-build-server?