Ghcide: sectionSeparator does not work with Emacs lsp-ui

Created on 16 Nov 2019  路  4Comments  路  Source: haskell/ghcide

I'm using Emacs 26.3 and the lsp-ui install instructions on the ghcide README.

lsp-ui does not seem to like the sectionSeparator defined by haskell-lsp-types. It renders the info box shown below, seemingly thinking that the first * is a bullet and then generating a sort of underlined * using the other two. I'm not sure whose bug this is. If *\t*\t*\n as a Markdown section separator is a genuine part of the LSP standard then I suppose it's lsp-ui's bug; if it's not part of the LSP standard then it's probably haskell-lsp-types's bug. In either case I think ghcide needs to make a decision to ignore, workaround, or poke upstream or downstream as appropriate.

image

enhancement

Most helpful comment

Not quite sure where haskell-lsp got this from. It is definitely supported by VSCode but I can鈥檛 find it in either the LSP spec or in any reasonably common Markdown spec. I鈥檒l open an issue upstream next week.

All 4 comments

Not quite sure where haskell-lsp got this from. It is definitely supported by VSCode but I can鈥檛 find it in either the LSP spec or in any reasonably common Markdown spec. I鈥檒l open an issue upstream next week.

I'm still seeing this issue. Also on emacs 26.3. Any way I could help sorting it out? :) Thanks.

I think @alanz did some improvements in hover info to make it better in emacs, @carlosdagos could you try last ghcide version?

@jneira I did do improvements, but in some rearrangement along the way the improvement got lost.

I have not got round to doing it again.

Was this page helpful?
0 / 5 - 0 ratings