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

compan-sourcekit slow or I am missing something? #21

Closed
LucaMarconato opened this issue Oct 29, 2016 · 2 comments
Closed

compan-sourcekit slow or I am missing something? #21

LucaMarconato opened this issue Oct 29, 2016 · 2 comments

Comments

@LucaMarconato
Copy link

Hello, I have set up company-sorcekit and now if I type "CGRect(" after a fraction of second it appears a list of suggestion, as in your demo video.

soft question: is it possible to make that fraction of second smaller? For instance with company I use
(setq company-idle-delay 0.01)
(setq company-dabbrev-downcase 0.01)
in order to cut the time that I have to wait before seeing the suggestions, but this does not seem to affect company-sourcekit.

But the real problem is the following: If I type (inside a method of a class) "self.", the suggestions are showed after 5 seconds! It is an eternity!
This happen also with various other variables.

Is this the default behaviour, is it a known bug or maybe I am not using company-sourcekit correctly?
I would like to cut down that time or to bind a key, for instance S-TAB, to the function that shows the suggestions. In other word I would like that typing "self." (or maybe typing "self." S-TAB) emacs would show me the suggestions immediately.
Is it possible?

Thank you in advance!
Luca.

@nathankot
Copy link
Owner

Hey Luca - thanks for voicing your concerns! The speed of completion is highly dependent on your Xcode version, and the project you're working on. The best we can achieve is probably to match the speed of completion of Xcode - currently it doesn't and there are improvements that can be made to do that. Most of these improvements would be applied on the sourcekittendaemon side of things.

Please take a look at the relevant issues below:

terhechte/SourceKittenDaemon#40
#16

Pretty much it boils down to us not doing the same amount of caching of sourcekit responses that Xcode is doing.

@nathankot
Copy link
Owner

Closing as duplicate of #24

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

2 participants