Open douglasdavis opened 3 years ago
I'm pretty confident now that it's due to the way the >>>
lines are getting rendered by markdown. If I surround the example triple back ticks ("``") (i.e. use markdown syntax) the freeze disappears. Unfortunately Python docstrings are more RST like than markdown. After more testing the issue is also not isolated to the presence of
>>>`'s. Overall it appears to be an issue with markdown, perhaps related to https://github.com/emacs-lsp/lsp-ui/issues/611 but I'm not sure.
I'm seeing the exact same behavior.
((org :variables org-projectile-file "TODOs.org" org-enable-org-journal-support t)
dap lsp csv c-c++ q-mode yaml helm emoji osx
(python :variables python-backend 'lsp python-lsp-server 'pylsp python-formatter 'yapf python-format-on-save t)
ipython-notebook auto-completion emacs-lisp json git treemacs docker syntax-checking themes-megapack
(scala :variables scala-backend 'scala-metals scala-auto-treeview nil scala-sbt-window-position 'bottom)
java)
This is happening to me with the following setup:
emacs -Q
, loadlsp
,lsp-ui
, andpyenv
.After running M-x lsp in a Python project buffer and hovering over a symbol with a lengthy docstring, if I scroll down through a bit of the child frame Emacs eventually freezes. It's not obvious to me what is triggering the freeze. I'm happy to try any recommended tests.
I tested with
lsp-ui-doc-use-webkit
set tot
(after compiling using--with-xwidgets
and the freezing doesn't occur; perhaps there's an issue with the markdown rendering of the default setting.Another observed feature: the freezing appears to consistently happen when encountering an Examples block in a python docstring, something of the form: