Bug 446939 - Kate LSP does not respond to request for client/registerCapability from VS Code HTML
Summary: Kate LSP does not respond to request for client/registerCapability from VS Co...
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 21.12.0
Platform: Microsoft Windows Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-13 16:13 UTC by Jonathan Rubenstein
Modified: 2022-01-09 20:01 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 21.12.1
Sentry Crash Report:


Attachments
Screenshot of Output pane (41.85 KB, image/png)
2021-12-13 16:13 UTC, Jonathan Rubenstein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Rubenstein 2021-12-13 16:13:59 UTC
Created attachment 144517 [details]
Screenshot of Output pane

SUMMARY
I was attempting to use the HTML LSP provided by Microsoft Visual Studio Code
https://github.com/microsoft/vscode/blob/main/extensions/html-language-features/server
provided by
https://github.com/hrsh7th/vscode-langservers-extracted

It seems to run fine, but on run prints an error to the LSP console


STEPS TO REPRODUCE
1. Install https://github.com/hrsh7th/vscode-langservers-extracted with npm install -g vscode-langservers-extracted
2. Add the following to your LSP servers

        "html": {
            "command": ["vscode-html-language-server.cmd", "--stdio"],
            "url": "https://github.com/hrsh7th/vscode-langservers-extracted",
            "highlightingModeRegex": "^HTML.*$"
        }

3. Open an html file.

OBSERVED RESULT
Plugin seems to run okay, but the following is printed to the console

17:45:59 LSP Server Error html@C:/Users/Jonathan R
   Unhandled exception: client/registerCapability
   Error: client/registerCapability
       at handleResponse (C:\Users\Jonathan R\AppData\Roaming\npm\pnpm-global\5\node_modules\.pnpm\vscode-jsonrpc@8.0.0-next.4\node_modules\vscode-jsonrpc\lib\common\connection.js:510:48)
       at processMessageQueue (C:\Users\Jonathan R\AppData\Roaming\npm\pnpm-global\5\node_modules\.pnpm\vscode-jsonrpc@8.0.0-next.4\node_modules\vscode-jsonrpc\lib\common\connection.js:308:17)
       at Immediate.<anonymous> (C:\Users\Jonathan R\AppData\Roaming\npm\pnpm-global\5\node_modules\.pnpm\vscode-jsonrpc@8.0.0-next.4\node_modules\vscode-jsonrpc\lib\common\connection.js:292:13)
       at processImmediate (node:internal/timers:464:21)


EXPECTED RESULT
Plugin runs without errors


SOFTWARE/OS VERSIONS
Windows: 10 Home 21H1 19043.1348
macOS:  N/A
Linux/KDE Plasma: N/A
(available in About System)
KDE Plasma Version: N/A
KDE Frameworks Version: N/A
Qt Version: N/A

ADDITIONAL INFORMATION
The following info message is also printed when the plugin starts

17:45:59 LSP Server Info html@C:/Users/Jonathan R
   Registering request handler for workspace/didChangeWorkspaceFolders failed.
Comment 1 Waqar Ahmed 2022-01-09 20:01:51 UTC
Fixed with 21.12.1.

Please reopen if it still doesn't work.