-
Notifications
You must be signed in to change notification settings - Fork 226
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
'sourcekitten complete --text...' terminated by signal SIGILL (Illegal instruction) #97
Comments
Addendum, I printed out the parameters to Commandline: Unit Test: They're really the same. Only that running it via the commandline runs into that weird error. |
I found the issue and created a PR :) |
Hey, I ran into this bug and I'm not sure what's the best way of solving it. When I try
Then I get the following error:
I did some investigation and added a unit test, that does exactly the same:
That generates the correct completions.
So I ran sourcekitten in debug mode to see where it fails. What happens is that in
SwiftXPC.swift
thefromXPC(xpcObject: xpc_object_t) -> XPCDictionary
assumes that xpc_object_t is of type xpc_dictionary_t. However, when running on the commandline with the above arguments, it is actually a xpc_data_t:This will print:
"\x01error when parsing the compiler arguments\0"
So apparently between the unit test invocation and the command line invocation, something goes wrong that causes a wrong return type from the xpc call.
(I'm using a git-cloned version of the sourcekitten repo master branch, head). Also, on the machine where this happens, I'm on 10.10 running the Xcode 7.1 gold, the xcode-select is properly set to /Applications/Xcode.app)
The text was updated successfully, but these errors were encountered: