- 
                Notifications
    You must be signed in to change notification settings 
- Fork 137
Closed
Description
When I open a cpp file, lsp-ui with ccls does work (e.g., sideline mode). But flycheck doesn't seem to know anything about lsp-ui. flycheck-verify-setup gives:
Syntax checkers for buffer main.cpp in c++-mode:
  c/c++-clang
    - may enable: yes
    - executable: Found at c:/msys64/mingw64/bin/clang.exe
  c/c++-gcc
    - may enable: yes
    - executable: Found at c:/msys64/mingw64/bin/gcc.exe
  c/c++-cppcheck
    - may enable: Automatically disabled!
    - executable: Not found
Flycheck Mode is enabled.  Use C-u C-c ! x to enable disabled
checkers.
--------------------
Flycheck version: 32snapshot (package: 20190108.351)
Emacs version:    26.1
System:           x86_64-w64-mingw32
Window system:    w32
When I (require 'lsp-ui-flycheck), there is the following addition:
The following syntax checkers are not registered:
  - lsp-ui
Try adding these syntax checkers to `flycheck-checkers'.
How do I enable lsp-ui-flycheck?
Here's the minimal init.el:
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) (package-initialize)
(unless package-archive-contents (package-refresh-contents))  ; install use-package
(unless (package-installed-p 'use-package) (package-install 'use-package))
(eval-when-compile (require 'use-package)) (setq use-package-always-ensure t)
(use-package flycheck)
(add-hook 'c++-mode-hook 'flycheck-mode)
(use-package lsp-mode :commands lsp)
(use-package lsp-ui :commands lsp-ui-mode :hook (lsp-mode . lsp-ui-mode))
(use-package company-lsp :commands company-lsp)
(use-package ccls
  :hook ((c-mode c++-mode objc-mode) .
         (lambda () (require 'ccls) (lsp)))
  :config
  (setq ccls-executable "D:/Adrian/ccls/ccls/build/ccls.exe"))
marco-lilek, paxperscientiam and schen0x
Metadata
Metadata
Assignees
Labels
No labels