-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
When enable semantic in emacs-lisp buffer, the completion is very slow #1907
Comments
|
@tuhdo When wrting comments in lisp, it should use |
This affects me, despite me having default Spacemacs setup for I'm not even mad at it parsing all the emacs sources, I'm just mad it's doing it when I'm typing and not doing when I'm not, when it's clearly better to do so the other way around 😆 |
I have this issue too, and it'd be great if a manual tagging procedure of the kind @a13ph describes exists. With |
I have this issue too. Any plan to solve this? |
@d12frosted, can you please reopen this issue then? |
I have the same issue also on my end, when auto-completing in my .spacemacs file:
I have disabled semantics since I don't use it very much. On my end I'm fine like that, but I'm willing to help / debug / support if needed. System Info 💻
(helm
(auto-completion :variables auto-completion-return-key-behavior nil auto-completion-tab-key-behavior nil auto-completion-enable-snippets-in-popup t auto-completion-enable-help-tooltip t)
smex cscope gtags
(shell :variables shell-default-height 16 shell-default-position 'bottom shell-default-shell 'shell)
(spell-checking :variables spell-checking-enable-by-default nil)
(syntax-checking :variables syntax-checking-enable-by-default nil)
typography version-control git perforce dash evil-snipe vinegar
(ibuffer :variables ibuffer-group-buffers-by 'projects)
ranger imenu-list markdown org org-clock-csv finance emacs-lisp common-lisp latex c-c++ java python lua shell-scripts windows-scripts autohotkey vimscript csv restclient html javascript)
|
does your |
@a13ph I am the master of timing, right? |
Resolve syl20bnr#1907. Emacs 25 sets semanticdb-find-default-throttle as a mode-local variable in emacs-lisp-mode and includes the omniscient throttle which slows down indexing. Let's override the mode-local variable so it doesn't include the omniscient throttle. See syl20bnr#7736 for additional context.
Resolve syl20bnr#1907. Emacs 25 sets semanticdb-find-default-throttle as a mode-local variable in emacs-lisp-mode and includes the omniscient throttle which slows down indexing. Let's override the mode-local variable so it doesn't include the omniscient throttle. See syl20bnr#7736 for additional context.
Any update on this issue? Even |
judging from @beta1440's PR, my suggestion in #7736 (comment) worked for him -- can you confirm whether that works? |
@braham-snyder it seems it did stop forcing company.el to parse big number of files, but there's still noticeable lag (about half a second long) there and there. Sigh. I guess I have to disable semantic layer. Nothing else seems to work for this issue. |
nope, I was wrong... it actually still tries to parse bunch of files, when something being typed in elisp docstings. |
FWIW, #7736 (comment) is still working for me |
This needs a fix IMO? A caching system? |
I do have to say, for an editor configured and (mostly) written in Emacs Lisp, it's a little unnerving that it has this much trouble with its native language going on 3 years, now. I'm finally taking the time to try to learn Emacs Lisp, and this particular issue is almost enough for me to give up on it and use other editors for the language layers that don't work well enough for me. |
The problem is with a third-party package that you need not enable. Other
editors just don’t have that many extensions going for them, so they are
less trouble.
Soon the LSP will become common, and all editors would use it. That should
solve quite a lot of problems.
…On Sun, May 27, 2018 at 9:40 AM Josiah ***@***.***> wrote:
I do have to say, for an editor configured and (mostly) written in Emacs
Lisp, it's a little unnerving that it has this much trouble with its native
language. I'm finally taking the time to try to learn Emacs Lisp, and this
particular issue is almost enough for me to give up on it and use other
editors for the language layers that don't work well enough for me.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1907 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Aii--muLmSwfbn4TMO_fh7blQBXffgJBks5t2jU7gaJpZM4E88Q6>
.
|
#11058 (comment) fixed this issue for me (and also #11058). |
Is there any resolution for this? |
The following PR is now on the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
If I enable semantic layer or manually enable semantic mode, the company mode completion is very very slow when editing elisp code. It will try to parse all the elisp in Emacs installation and ELPA directory.
And even in elisp comments, the company tries to use
company-capf
as the backend.If I disable semantic layer, it will use
company-dabbrev
when completing comments.@tuhdo
Toughts?
The text was updated successfully, but these errors were encountered: