-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
Completions intermittently fail #1024
Comments
Use |
Andrew Kirkpatrick notifications@github.com writes:
I don't see why this would happen.
This is not reproductible, tried on emacs-24.5 and emacs-25.
How are you installing ("loading") helm ? Thierry |
Tu Do notifications@github.com writes:
Anyway the regular Thierry |
I wasn't using helm-M-x, I guess because execute-extended-command did appear to function, but after a while I'd start seeing the missing completions. The basic setup mentions helm-M-x but then goes on to say you can just put (helm-mode 1) in init.el and enjoy helm under M-x and elsewhere. I thought that it wasn't just under M-x that the completions were failing, but I'll give helm-M-x a go for a few days and see how it works out. I've loaded helm via package.el and alternately loaded from the git repo via add-to-path and require. I've not tried the shell script yet. Thanks for the prompt responses. |
Ah yes it's usable but it may annoy users because there was not real sorting i.e. if you try |
Tu Do notifications@github.com writes:
Maybe, but this is unrelated with the actual bug, which is a problem @spacebat Did you try recompiling your emacs with "make bootstrap" ? Thierry |
Using helm-M-x, I am running into the problem again. Its like the completion cache, if there is one, gradually becomes broken and only sometimes populates. I think it is always either the correct set of completions or empty. I've been using emacs in manjaro linux, a flavour of arch, and it looks like its package build recipe doesn't use make bootstrap. I'll build emacs manually to try bootstrap. |
Andrew Kirkpatrick notifications@github.com writes:
Yes, there is no reasons helm-M-x works better than the old M-x you used
What are you calling the completion cache ? Thierry |
I'm starting to debug it now; I guess by completion cache I'd mean the candidates variables in helm-comp-read. However it is definitely populated and remains so even when I get no results. I'll let you know what I find. |
@spacebat Do you get any messages in the Messages buffer when the problem happens? Then setting debug-on-error to t might give you a backtrace. |
No messages, no errors. Setting debug-on-error doesn't trigger the debugger when the problem occurs. I've enabled helm debug logging but there's a lot of output and the cause isn't clear yet. |
I've built a fresh emacs from savanna git master starting with make bootstrap, using helm from github as of may 19 and still get the problem. Next up I'll try that shell script installation method for helm. |
Does the problem happen for you with emacs-helm.sh btw? Or could it be related to your setup? I don't think that trying more installation methods is necessary, as long as you are sure that you had installed it correctly. |
Also (setq debug-on-signal t) might help debugging. Or (setq helm-debug t), and have a look at every output between "Start updating" and "end update". Especially, when the problem occurs, is "end update" printed at all? If it is, does the output in between look different? |
It takes a while to test; it doesn't happen at first, which is why I was thinking some kind of cache/state corruption might be the cause. I just updated helm trunk and using my normal config it started happening again, debug-on-signal is catching nothing. The output of helm-debug would be easier to understand if the keystrokes were logged - because sometimes it works, sometimes it doesn't and its hard to tease the cases apart in the log. Also I've had emacs crash twice this morning while helm-debug was active, probably because I've gone to the bleeding edge in search of a fix. |
If you had crash, perhaps you should run your emacs in GDB. Isn't this bug related to #1000 ? |
Trying it under GDB now, though I doubt its related since I wasn't getting crashes until I went to the most recent emacs commit from savannah. It may not be related to #1000 because I'm no longer running emacs packaged by Arch but the problem persists. Thanks for the help. |
Andrew Kirkpatrick notifications@github.com writes:
I remember that we have add a similar problem (see #967). Thierry |
I keep trying to use helm but a few minutes into a session, start seeing the following behaviour. When completing with helm, the number of completion candidates drops to zero. Right now:
M-x eldoc-
gives: turn-on-eldoc-mode and eldoc-mode
M-x eldoc-m
M-x eldoc-mo
gives nothing at all
M-x eldoc-mod
gives: turn-on-eldoc-mode and eldoc-mode
M-x eldoc-mode
gives nothing at all
At that point, helm is worse than no completion at all, since I've typed something valid but pressing enter gets me nowhere.
A few minutes later, eldoc-mode completes just fine but some other completion exhibits similar behaviour in helm.
I've tried helm from melpa and directly from github, version 1.7.0 and HEAD, updated my emacs (currently 24.5.50.1), tried running it via emacs -Q and loading helm from the git repo manually, but the problem persists.
Its perplexing because some people are swear by helm and never seem to experience this, but this would be about the 4th time I've tried helm over the last few years and found it promising but ultimately unusable due to problems like this, across various combinations of versions of helm and emacs.
The text was updated successfully, but these errors were encountered: