Skip to content
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

No completion in workspaces #31

Open
sjrmanning opened this issue Jul 4, 2017 · 3 comments
Open

No completion in workspaces #31

sjrmanning opened this issue Jul 4, 2017 · 3 comments

Comments

@sjrmanning
Copy link

Hey,

First of all I really appreciate the work you're doing on this. Would love to be able to use Emacs for all my Swift dev :)

Just had a quick question about compatibility inside workspaces. The autocompletion works for me inside simple projects but as soon as I'm in a project relying on a workspace I get no completion at all, even for built-in types. Just wondering if that's normal or is my configuration broken somewhere?

Cheers!

@nathankot
Copy link
Owner

Heya @sjrmanning thanks for the kind words! The answer is that there isn't any official support for workspaces, so it's probably not your configuration :)

I have had reports that using sourcekitten directly works with workspaces with minimal configuration / flag passing - although I'm doubtful, I haven't investigated this any further.

If you're up for it, adding support would involve patching this file in sourcekittendaemon in order to pass the appropriate flags to sourcekitten for workspaces completion!

@vitalyster
Copy link

I have the same issue, sourcekit-verbose is enabled, but it does not show any error message:

[sourcekit] trying daemon on port: 8081
[sourcekit] making request to http://localhost:8081/complete
[sourcekit] with headers (("X-Offset" . "760") ("X-Path" . "/var/folders/p_/0_0tjh057r3d38tl4s27wc8w0000gn/T/sourcekitten67944HTB"))
[sourcekit] got query response

@konrad1977
Copy link

I commented out preprocessor flags and -c argument (2 lines) and now I got completion in workspace projects to.

https://www.reddit.com/r/emacs/comments/sndriv/i_finally_got_full_autocompetion_in_swift_with/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants