https://bugs.kde.org/show_bug.cgi?id=494139
Bug ID: 494139 Summary: LSP hover text has backspaces before certain characters. Classification: Applications Product: kate Version: 24.08.1 Platform: Kubuntu OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kwrite-bugs-n...@kde.org Reporter: len...@gmail.com Target Milestone: --- Created attachment 174435 --> https://bugs.kde.org/attachment.cgi?id=174435&action=edit Kate, showing backspaces before a bunch of special characters SUMMARY The hover text from language servers contains backspaces before many special characters, including: .`!#*(){}[]\ STEPS TO REPRODUCE 1. Configure the YAML LSP to enable hover and receive from the schema store: { "servers": { "yaml": { "command": ["yaml-language-server", "--stdio"], "url": "https://github.com/redhat-developer/yaml-language-server", "highlightingModeRegex": "^YAML$", "settings": { "yaml": { "hover": true, "schemaStore": { "enable": true } } } } } } 2. Create a "rockcraft.yaml" file with the following contents: name: my-name title: blah summary: thing description: description base: ubuntu@24.04 platforms: amd64: parts: {} 3. Hover over the "name" field OBSERVED RESULT Hover text contains several backslashes. For example, the first paragraph reads as: "Valid names for rocks\. It matches the accepted values for pebble layer files:" EXPECTED RESULT Hover text does not contain these backslashes. The first paragraph should read: "Valid names for rocks. It matches the accepted values for pebble layer files:" Compare to Visual Studio Code with the Red Hat YAML LSP extension installed. SOFTWARE/OS VERSIONS Operating System: Kubuntu 24.10 KDE Plasma Version: 6.1.5 KDE Frameworks Version: 6.6.0 Qt Version: 6.6.2 Kernel Version: 6.11.0-8-generic (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 7840U w/ Radeon 780M Graphics Memory: 60.6 GiB of RAM Graphics Processor: AMD Radeon 780M ADDITIONAL INFORMATION The schema for rockcraft.yaml can be found at: https://raw.githubusercontent.com/canonical/rockcraft/main/schema/rockcraft.json The actual value that comes out of the server at this point, according to lsp-devtools, is: { "jsonrpc": "2.0", "id": 3, "result": { "contents": [ "Project Name\n\nValid names for rocks\\. It matches the accepted values for pebble layer files:\n\n\\- must start with a lowercase letter \\[a\\-z\\]\n\n\\- must contain only lowercase letters \\[a\\-z\\], numbers \\[0\\-9\\] or hyphens\n\n\\- must not end with a hyphen, and must not contain two or more consecutive hyphens\n" ], "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 0, "character": 4 } } } } -- You are receiving this mail because: You are watching all bug changes.