spacemacs
spacemacs copied to clipboard
imenu-unavailable-error: imenu unavailable: "No items suitable for an index found in this buffer"
In lsp-mode, when I try to invoke lsp-ui-imenu
,it reports imenu unavailable: "No items suitable for an index found in this buffer"
I'm not very sure what it means, but from the picture below, we can see lsp-ui can display headerline, so I think there have index,
Am I right? So, what is the reason of the error and how to make lsp-ui-imenu
work. Thanks.
Are you using clangd?
Are you using clangd?
YES, is that related?
@lebensterben It seems that not related to clangd, because I just switched to ccls, it still has the same problem.
https://clangd.llvm.org/installation.html
See the project setup section.
I've read it. The compile_commands.json is already in the project
not able to reproduce the issue.
Maybe I should describe it more clearly. The first file opened after opening spacemacs, the imenu-list displays normally. However, when I jump to other functions and this function is in other files, this problem occurs.
Is that file also in the same project?
yes, in the same project
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!