Skip to content

sideline not showing warnings-errors only fixes #2

@innerout

Description

@innerout

Hi jcs,
First of all, thanks for the great plugin. I have been looking for this kind of feature for quite some time to use in emacs.
I am trying to setup sideline with sideline-flycheck and sideline-lsp, and I cannot find a way to make the errors show up as in the images you have in the sideline package.

I have enabled sideline-mode by manually calling it in the buffer, and I have the following in my configuration.

I have tried adding sideline-flycheck in the backend, but it still showed nothing.
Do you know what could happen that would result in this behavior?
I am using emacs 28 with native-comp (with doom emacs) and tried to port your leaf suggestions to use-package.

(use-package! sideline
  :hook (flycheck-mode-hook . sideline-mode)
  :init
  (setq    sideline-order-left 'down              ; or 'up
    sideline-order-right 'up               ; or 'down
    sideline-format-left "%s   "           ; format for left aligment
    sideline-format-right "   %s"          ; format for right aligment
    sideline-priority 100                  ; overlays' priority
    sideline-display-backend-name t)       ; display the backend name
  (setq sideline-backends-right '(sideline-lsp)))

(use-package! sideline-lsp
  :init
  (setq sideline-lsp-update-mode 'line))

(use-package! lsp-mode :hook (lsp-mode-hook . sideline-mode))
(use-package! lsp-ui :init (setq lsp-ui-sideline-enable nil))  ; disable original sideline
(use-package! sideline-flycheck :hook (flycheck-mode-hook . sideline-flycheck-setup))

The image shows what I am seeing. The asd error is not displayed at all nor the clang-tidy warnings. The clang-tidy warnings come from the lsp-server. (clangd)
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions