I have been using
rtags as my primary C++ mode, but I found that it's performance is not satisfying for large code bases e.g. Linux kernel.
It takes more than 5 seconds to find definitions. This it not so bad, but I heard that
cquery provides better performance.
So I installed cquery and set up my
(use-package lsp-mode) (use-package lsp-ui :commands lsp-ui-mode) (use-package company-lsp :commands company-lsp) (use-package cquery :config (setq cquery-executable "/path/to/cquery"))
I followed the steps introduced in the documentation, namely:
- Open file
- Run lsp by
At this point, I get error message, saying:
error in process filter: Symbol’s value as variable is void: method
and the status bar halts at
Am I missing any steps?