Bug 446670

Summary: LSP popups contain HTML escape entities
Product: [Applications] kate Reporter: Gleb Popov <6yearold>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: waqar.17a
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In: 21.12.1
Sentry Crash Report:

Description Gleb Popov 2021-12-08 06:55:38 UTC
I'm using Kate with the LSP plugin and Haskell Language Server, a LSP implementation for the Haskell programming language. It works quite well, except the following nasty bug:

Haskell type annotations usually contain an "->" to denote function types. However, when I hover over any function and get a popup window, I see "Int -&gt; String" instead of "Int -> String".


STEPS TO REPRODUCE
1. Install HLS https://github.com/haskell/haskell-language-server/
2. Create an empty Haskell project with `cabal init`.
3. Put the following code into "Main.hs":

sum x y = x + y

4. Hover over "sum" string and look into popup.

OBSERVED RESULT

sum :: Int -&gt; Int -&gt; Int

EXPECTED RESULT

sum :: Int -> Int -> Int

ADDITIONAL INFORMATION

I'm not quite sure if this bug should be reported to HLS upstream or here. But given that other editors work fine with HLS, I decided to try here first.
Comment 1 Waqar Ahmed 2022-01-09 20:21:09 UTC
Fixed with 21.12.1
Comment 2 Gleb Popov 2022-01-11 12:21:46 UTC
I confirm, it works now. Thanks a lot for fixing this!