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

helm mini frame errors saying no such buffer #179

Open
rmNULL opened this issue Apr 6, 2022 · 5 comments
Open

helm mini frame errors saying no such buffer #179

rmNULL opened this issue Apr 6, 2022 · 5 comments
Labels

Comments

@rmNULL
Copy link

rmNULL commented Apr 6, 2022

Briefing

Using helm apropos in a mini frame errors with "with "No such live buffer *helm apropos*".
I know this is not a helm error as this error only occurs when persp-mode is enabled.
If we enable persp-mode after the call to helm-apropos command, then the bug disappears.

Steps to reproduce

In order to test this i've used the testing helm distribution emacs-helm.sh

  1. run emacs-helm.sh
  2. Evaluate this in a buffer
(add-to-list 'helm-commands-using-frame 'helm-apropos)
(straight-use-package 'perspective)
(persp-mode)
  1. M-x helm-apropos RET gzip RET
    Receive an error saying "No such live buffer *helm apropos*"
  2. (persp-mode -1)
  3. M-x helm-apropos RET gzip RET
    now it works fine
  4. (persp-mode)
    It works fine after this point

Test Snippet

(add-to-list 'helm-commands-using-frame 'helm-apropos)
(straight-use-package 'perspective)
(persp-mode)

;;
;; M-x helm-apropos RET gzip RET
;; errors with "No such live buffer *helm apropos*"

;; (persp-mode -1)
;;
;; M-x helm-apropos RET gzip RET
;; works fine


;; (persp-mode)
;; works alright after this.
;;

Recording

persp_test_demo.mp4

Thanks

@rmNULL rmNULL changed the title helm mini frames error with no such buffer helm mini frame errors saying no such buffer Apr 6, 2022
@gcv gcv added the bug label Apr 7, 2022
@gcv
Copy link
Collaborator

gcv commented Apr 7, 2022

I reproduced the error. Won't have time to look into it in the next few days. If you want to try debugging it yourself, it probably has something to do with the way Perspective cleans up buffers when a frame is closed. A workaround might be for Perspective to detect frames being allocated by Helm and avoid calling persp-init-frame on them.

@rmNULL
Copy link
Author

rmNULL commented Apr 7, 2022

Thanks for the tips, i'll look into it on my free time.

@gcv
Copy link
Collaborator

gcv commented Apr 7, 2022

If that turns out to be the problem, another fix is to patch Helm to open its child frame without parameters. I don't remember exactly how to do it, but I think both posframe and emacs-mini-frame do this.

@sellout
Copy link

sellout commented Jan 25, 2023

Ah, I’ve just been running into this as well. I’ll try to come up with a fix, too.

@montchr
Copy link

montchr commented Sep 20, 2023

I've been running into a similar "no such buffer" error message since installing this package. However, I am using Corfu, not Helm.

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

No branches or pull requests

4 participants