ccls
ccls copied to clipboard
ccls complains no matching member function errors
After I've setup environment for platformio core in emacs, ccls shows following errors
The project can be compiled without error
Steps to reproduce
- Install platformio core
- Install PlatformIO-Mode for emacs
- Compile ccls
- Install emacs-ccls
- Use sample Temp_Humidity.zip pio project.
My emacs related configuration snippet:
;; ccls
(straight-use-package 'ccls)
(require 'ccls)
(setq ccls-executable (concat (getenv "HOME") "/opt/ccls"))
(setq ccls-args '("--log-file=/tmp/ccls.log"))
(setq ccls-initialization-options
'(:cache (:directory "/tmp/ccls_cache")))
;; C/C++
(add-hook 'c-mode-hook 'lsp)
(add-hook 'c++-mode-hook 'lsp)
;; platformio-mode
(straight-use-package 'platformio-mode)
(require 'platformio-mode)
(add-hook 'c++-mode-hook (lambda ()
(lsp-deferred)
(platformio-conditionally-enable)))
System information
- ccls version: latest git repo
- clang version: Ubuntu clang version 18.1.0 (++20240128073045+27654471cc7a-1~exp1~20240128073147.12)
- OS: Linux Mint 21.3
- Editor: Emacs
- Language client (and version): Emacs lsp