-
Notifications
You must be signed in to change notification settings - Fork 37
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
Empty complete response #52
Comments
I'd try using the -sdk flag
You'll need to check to see what sdk you have installed
|
I'm having the same problem. The result from /complete is always empty, while I can get result from command-line sourcekitten. @Dan2552 Have you made any progress in the past months? BTW @joenewbry I don't understand what do you mean by using -sdk, as we are facing problem with sourcekittendaemon, not sourcekitten itself. |
I haven't tried SourceKittenDaemon since my original posting of the issue as to be honest once I started working out what the arguments etc were I figured I could just use SourceKitten directly. My end result was a Sublime Text plugin: https://github.com/Dan2552/SourceKittenSubl - maybe an adapter for SKD will be put in at some point. I believe the arguments are the same for SKD though, so hope this helps you. You can see in my implementation how I call on SourceKitten here
Here's a complete example call to
If you want to understand things deeper, this helped me a lot: |
Hi, I'm having the same problem too. |
I'm having the same problem, even on michaelnew's fork that resolves most of the Swift 5 compatibility issues. On his fork everything seems to work as long as there is no .xcworkspace file. I think the underlying problem is that XCodeEdit does not have support for .xcworkspace files but I haven't tested with a project that includes an .xcworkspace that does not also have CocoaPods, so it may be an issue that is specific to CocoaPods. UPDATE: For me at least, I seem to be running into issue #65 which I'm not sure why it was closed. After commenting out superfluous compiler flags (for the purposes of autocomplete) it worked. |
I installed SourceKittenDaemon by cloning and
make install
start:
Getting a list of files works ok.
If I do the following request:
I get an empty collection as the response:
When running straight from
SourceKitten
(installed by homebrew) using:I get a proper result back.
Any ideas what I might be doing wrong?
Contents off
AppDelegate.swift
:The text was updated successfully, but these errors were encountered: