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

”No items suitable for an index found in this buffer” #74

Open
jason--liu opened this issue Jul 15, 2021 · 0 comments
Open

”No items suitable for an index found in this buffer” #74

jason--liu opened this issue Jul 15, 2021 · 0 comments

Comments

@jason--liu
Copy link

jason--liu commented Jul 15, 2021

Hi, I use imenu-list in spacemacs, I often encounter that there are no items in imenu when I open the C file.
After M-x toggle-debug-on-error, then M-x imenu, the error message is below.

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  string-match("\\`hlist_node\\'" nil)
  imenu-find-default(#("hlist_node" 0 10 (fontified t face font-lock-type-face)) (("*Rescan*" . -99) (nil)))
  imenu--completion-buffer((("*Rescan*" . -99) nil) nil)
  imenu-choose-buffer-index()
  byte-code("\300 C\207" [imenu-choose-buffer-index] 1)
  call-interactively(imenu record nil)
  command-execute(imenu record)
  counsel-M-x-action("imenu")
  ivy-call()
  ivy-read("M-x " ("imenu-list-refresh" "toggle-debug-on-error" "calendar" "org-mode" "counsel-linux-app" "toggle-input-method" "magit-blame" "magit-log" "hide-ifdef-mode" "counsel-etags-update-tags-force" "calc" "calculator" "clang-format-buffer" "asm-mode" "makefile-mode" "counsel-etags-list-tag-in-current-file" "imenu-list-show-noselect" "imenu-add-menubar-index" "imenu-list-show" "s" "cd" "5x5" "arp" "dbx" "dig" "erc" "ert" "eww" "ftp" "gdb" "irc" "hide-ifdefs" "ede" "jdb" "lsp" "man" "mpc" "pdb" "pwd" "rsh" "sdb" "xdb" "diff" "dirs" "ffap" "gnus" "grep" "help" "ielm" "info" ...) :predicate counsel--M-x-externs-predicate :require-match t :history counsel-M-x-history :action counsel-M-x-action :keymap (keymap (67108908 . counsel--info-lookup-symbol) (67108910 . counsel-find-symbol)) :initial-input nil :caller counsel-M-x)
  counsel-M-x()
  funcall-interactively(counsel-M-x)
  call-interactively(counsel-M-x nil nil)
  command-execute(counsel-M-x)

emacs --version

GNU Emacs 26.3
Copyright (C) 2019 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

and use the latest spacemacs development branch. Thanks !

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

No branches or pull requests

1 participant