Fork me on GitHub
#emacs
<
2021-11-07
>
West22:11:03

When I hover over, or place the cursor over a word, lsp-mode with clojure-lsp will show me information about the symbol; Where it is, docstrings if they exist, stuff like that. It’s been happening for awhile now, but this has recently really started bothering me. I can’t figure out why sometimes this information doesn’t show up. Either that or it flashes in the modeline for a second only to disappear again. I’m asking for help with figuring out how to begin troubleshooting this.

ericdallo22:11:57

Maybe it's a conflict with cider eldoc integration? Maybe you need to leave only LSP-mode or cider one enabled

West22:11:10

(clojure :variables
              ;; clojure-backend 'cider               ;; use cider instead of lsp
              ;; clojure-enable-linters 'clj-kondo    ;; clj-kondo included in lsp
              clojure-enable-clj-refactor t
              cider-repl-display-help-banner nil      ;; disable help banner
              cider-pprint-fn 'fipp                   ;; fast pretty printing
              clojure-indent-style 'align-arguments
              clojure-align-forms-automatically t
              clojure-toplevel-inside-comment-form t  ;; evaluate expressions in comment as top level
              cider-result-overlay-position 'at-point ;; results shown right after expression
              cider-overlays-use-font-lock t
              cider-repl-buffer-size-limit 100        ;; limit lines shown in REPL buffer
              )
Doesn’t look I have cider enabled for the Clojure layer.

ericdallo22:11:32

Maybe it could be a clojure-lsp issue as clojure-lsp send to client what it is the range for that function docs

ericdallo22:11:43

If you manage to make a simple repro I can take a look later

vemv23:11:28

> Maybe you need to leave only LSP-mode or cider one enabled try cider-eldoc-display-for-symbol-at-point nil for this there might be other eldoc-related defcustoms

ericdallo23:11:31

@U45T93RA6 that's correct, but in this case I don't think he is using cider at all

West10:11:11

Is there a verbose mode or debug mode for emacs? Like is there a way to track every function call and its result?