-
Notifications
You must be signed in to change notification settings - Fork 74
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
helm-bibtex-candidates-formatter not applied (?) #425
Comments
Hang on, is this meant to be a feature? If I trigger |
It's a bug that I observed as well. But it happens rarely and (I think) only when I fire up helm-bibtex and very quickly start typing search terms. Since we haven't changed anything recently in helm-bibtex, I suspect that it's a problem in helm. I would have posted an issue there but I simply didn't find time to do it and to investigate this a bit more in depth. |
Same problem here. The occurrence seems to depend on the text at point. If there is nothing under cursor, then everything goes well. I have checked the code of 'helm' and found something related to thing-at-point, but cannot figure out how to fix it. |
@hitswint I can't reproduce a dependency on whether or not something is at point. The error also occurs rarely recently. Really hard to debug. If you can reproduce it more reliably, you could try git dissect on helm to see which helm commit introduced the problem |
After some digging, i finally ended up with the function "helm-guess-filename-at-point". There are two format functions applied on the original candidates: helm-bibtex-candidates-formatter and helm-fuzzy-highlight-matches. The two functions are applied sequentially on the original candidates. With the first one applied, it returns as expected. But the return value of latter function depends on the things at point because of the "helm-guess-filename-at-point" in it. When there is nothing under cursor, helm-guess-filename-at-point returns nothing, and when there is something like "high", it returns "/anonymous@high". This behavior ruins the return value of the format function. When i remove helm-guess-filename-at-point from helm-fuzzy-highlight-matches, everything runs normally. |
Thank you for investigating this. Please file an issue with the helm project (if you haven't done that yet) and perhaps reference this issue there. |
My bad, i just found that i have added an advice to "helm-guess-filename-at-point", in which the ffap-machine-p-local is modified to 'accept. I think that's why i encountered this problem frequently. I will remove the advice to see if this is still a bug. |
After i remove the advice on "helm-guess-filename-at-point", helm-bibtex runs normally most of the time. But when i call it in dired-mode, the bug still exists. When i redefine "helm-guess-filename-at-point" to always return nil, the bug disappears. |
Sorry, I probably don't fully understand what's going on, but if this issue is caused by a bug in helm. shouldn't we try to get it fixed there instead of adding a workaround in helm-bibtex? |
Yeah, you are right. I will file an issue with helm to see if they can fix it. |
This has been fixed in helm. |
Hi there,
I get the following strange behaviour. When I startup helm-bibtex all is in order:
But when I search (sometimes) I get:
Which seems to suggest that somehow
helm-bibtex-candidates-formatter
is no longer applied?Moreover, if I start helm-bibtex from a buffer in say
pdf-view-mode
then everything works as expected, but if I start helm-bibtex from a buffer inlatex-mode
I get the behaviour described above. Is there some logic inbibtex-completion
orhelm-bibtex
that might be the likely culprit? As it stands, I struggle to see where I'd start with debugging this.The text was updated successfully, but these errors were encountered: