tmalsburg / helm-bibtex

Search and manage bibliographies in Emacs
GNU General Public License v2.0
464 stars 74 forks source link

No Available actions on helm-bibtex #412

Closed mynet1314 closed 2 years ago

mynet1314 commented 2 years ago

Hi, I'm facing a problem with helm-bibtex: I could get a BibTex entries after I run M-x helm-bibtex, but it prompt "No Actions available" when I press C-z.

Screenshot:

Screen Shot 2022-10-19 at 14 56 44

Thanks for any help.

tmalsburg commented 2 years ago

Please try tab instead of C-z.

tmalsburg commented 2 years ago

I couldn't try it with C-z because that key combination is used by my window manager. However, when I rebind helm-execute-persistent-action to TAB, it works as expected. Could you please create a minimal reproducible example?

mynet1314 commented 2 years ago

@tmalsburg Thanks for you reply.

My minimal configuration below:


(setq package-archives '(("melpa" . "https://melpa.org/packages/")
                         ("org" . "https://orgmode.org/elpa/")
                         ("elpa" . "https://elpa.gnu.org/packages/")))

(package-initialize)
(unless package-archive-contents
 (package-refresh-contents))

;; Initialize use-package on non-Linux platforms
(unless (package-installed-p 'use-package)
   (package-install 'use-package))

(require 'use-package)
(setq use-package-always-ensure t)

(use-package helm-bibtex
  :config
 (setq bibtex-completion-bibliography "/Users/hoo/Bib/hello.bib"
        bibtex-completion-pdf-field "File"
        bibtex-completion-additional-search-fields '(keywords))
  :bind
  ("C-c n B" . helm-bibtex))

This configuration works with TAB, but also can't get actions list.

And my system is Mac OS X 12.6(M1 chip), Emacs 28.2, using Emacs-28.2-universal.dmg

And I also tried on Ubuntu 20.04, also couldn't work.

tmalsburg commented 2 years ago

I get an error message when I run your code because (I think) use-package is not installed on my system. Is there an easy way to include it in your code? (Sorry, not time to investigate myself.)

mynet1314 commented 2 years ago

@tmalsburg I think it might be some problems in environment.

I've created a linux account for you on cloud to investigate the problem:

ip: 120.xx.xx.xxx
username: helmbibtex
passwd: 1q2w3e

You can connect the server with ssh helmbibtex@120.24.62.193

To see the problem:

  1. run emacs command
  2. M-x helm-bibtex
  3. press TAB

And sometimes a error: Symbol’s function definition is void: helm-mode--in-file-completion-p will also prompt when run M-x helm-bibtex

Could you please help me with that?

tmalsburg commented 2 years ago

M-x helm-bibtex throws an error:

Symbol’s function definition is void: helm-mode--in-file-completion-p

Could you please post a minimal config here on GitHub? Thank you.

tmalsburg commented 2 years ago

I think helm is not correctly installed.

boturon commented 2 years ago

For me, it doesn't even open. It raises related errors on both Windows and Arch:

helm-fuzzy-highlight-matches: Symbol’s function definition is void: helm-mode--in-file-completion-p

and

custom-initialize-reset: Symbol’s function definition is void: helm-mode--in-file-completion-p

Possible tips:

tmalsburg commented 2 years ago

See here #413 for a possible solution.

mynet1314 commented 2 years ago

Thank you @tmalsburg @boturon, I'll try it, I will update the issue once I figure it out.

mynet1314 commented 2 years ago

I just change to ivy-bibtex, and it just works.