Giter Site home page Giter Site logo

doc-render issue in 29 about lsp-ui HOT 6 CLOSED

seagle0128 avatar seagle0128 commented on August 23, 2024
doc-render issue in 29

from lsp-ui.

Comments (6)

ianyepan avatar ianyepan commented on August 23, 2024

Same thing in Emacs 28.2. Happens with the clangd server. Those faces inherit markdown-code-face, by the way.

Edit: this happened only very recently. It was working well for the past few years.

from lsp-ui.

jcs090218 avatar jcs090218 commented on August 23, 2024

Was it working earlier? The recent relevant commit is emacs-lsp/lsp-mode@e2a1b5f; not sure if this is the cause. 😕

from lsp-ui.

def-SpaceWar avatar def-SpaceWar commented on August 23, 2024

I also have Emacs 28.2 and I get the same error in CSharp.

  • OS: Linux
  • Distro: Gentoo
  • Emacs: 28.2
  • Lsp-ui: Built off of master using straight.el.

image

But it also sometimes works.

image

And this error is only recent, not something I was experiencing before.

from lsp-ui.

stonekyx avatar stonekyx commented on August 23, 2024

Looks like emacs-lsp/lsp-mode@e2a1b5f (emacs-lsp/lsp-mode#3844) is indeed related. Removing the following function call in lsp--fontlock-with-mode fixes it for me:

(when (eq mode 'lsp--render-markdown)
              (lsp--fix-markdown-links))

from lsp-ui.

jcs090218 avatar jcs090218 commented on August 23, 2024

@vspinu Can you help us here?

from lsp-ui.

vspinu avatar vspinu commented on August 23, 2024

Something is throwing there and you get the plain string instead. To be frank I think that try error logic could be improved. Falling back to plain str is too conservative IMO. I think the buffer string should be returned regardless, in case of errors the buffer string is likely to be better formatted anyhow.

from lsp-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.