Closed kjnez closed 3 years ago
The use-package-report is showing the loading time of ccls to be 0, though it can successfully load and certainly takes some time. Below is my setup for ccls:
use-package-report
ccls
(use-package ccls :ensure t ;; :defer t :after (:any c-mode c++-mode) :hook ((c-mode c++-mode) . (lambda () (require 'ccls) (lsp))) :config (setq ccls-executable "ccls") (setq gdb-many-windows t) (setq-default flycheck-disabled-checkers '(c/c++-clang c/c++-cppcheck c/c++-gcc)))
And this is the setup for lsp-mode:
lsp-mode
(use-package lsp-mode :ensure t ;; Optional - enable lsp-mode automatically in scala files :hook (scala-mode . lsp) (c++-mode . lsp) (c-mode .lsp) :config (setq lsp-prefer-flymake nil))
The following is what is shown after I run M-x pp-macroexpand-last-sexp for ccls:
M-x pp-macroexpand-last-sexp
(progn (use-package-statistics-gather :use-package 'ccls nil) (use-package-ensure-elpa 'ccls '(t) 'nil) (defvar use-package--warning26 #'(lambda (keyword err) (let ((msg (format "%s/%s: %s" 'ccls keyword (error-message-string err)))) (display-warning 'use-package msg :error)))) (condition-case-unless-debug err (progn (defvar use-package--loaded26 nil) (defvar use-package--result26 nil) (defvar use-package--next26 #'(lambda nil (if use-package--loaded26 use-package--result26 (setq use-package--loaded26 t use-package--result26 (progn (use-package-statistics-gather :init 'ccls nil) (if (not (require 'ccls nil t)) (display-warning 'use-package (format "Cannot load %s" 'ccls) :error) (use-package-statistics-gather :config 'ccls nil) (condition-case-unless-debug err (progn (setq ccls-executable "ccls") (setq gdb-many-windows t) (setq-default flycheck-disabled-checkers '(c/c++-clang c/c++-cppcheck c/c++-gcc)) t) (error (funcall use-package--warning26 :config err))) (use-package-statistics-gather :config 'ccls t)) (use-package-statistics-gather :init 'ccls t) (add-hook 'c-mode-hook #'(lambda nil (require 'ccls) (lsp))) (add-hook 'c++-mode-hook #'(lambda nil (require 'ccls) (lsp)))))))) (eval-after-load 'c-mode '(funcall use-package--next26)) (eval-after-load 'c++-mode '(funcall use-package--next26))) (error (funcall use-package--warning26 :catch err))) (use-package-statistics-gather :use-package 'ccls t))
Running M-x use-package-report shows the following for ccls:
M-x use-package-report
ccls Declared 2020-11-30 Mon 10:17 0.00
But it has actually been configured and is functioning correctly.
The
use-package-report
is showing the loading time ofccls
to be 0, though it can successfully load and certainly takes some time. Below is my setup forccls
:And this is the setup for
lsp-mode
:The following is what is shown after I run
M-x pp-macroexpand-last-sexp
for ccls: