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

ccls complains no matching member function errors #959

Open
erusyd opened this issue Jan 30, 2024 · 0 comments
Open

ccls complains no matching member function errors #959

erusyd opened this issue Jan 30, 2024 · 0 comments

Comments

@erusyd
Copy link

erusyd commented Jan 30, 2024

After I've setup environment for platformio core in emacs, ccls shows following errors
Screenshot from 2024-01-30 15-30-17

The project can be compiled without error
Screenshot from 2024-01-30 15-36-34

Steps to reproduce

  1. Install platformio core
  2. Install PlatformIO-Mode for emacs
  3. Compile ccls
  4. Install emacs-ccls
  5. 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-1exp120240128073147.12)
  • OS: Linux Mint 21.3
  • Editor: Emacs
  • Language client (and version): Emacs lsp
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