https://bugs.kde.org/show_bug.cgi?id=501082

            Bug ID: 501082
           Summary: Support workspace/configuration in the LSP client
    Classification: Applications
           Product: kate
           Version: 24.12.2
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: len...@gmail.com
  Target Milestone: ---

***
If you're not sure this is actually a bug, instead post about it at
https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
Please support the workspace configuration request from LSP servers:
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_configuration

STEPS TO REPRODUCE
1. Install YAML language server >= 1.14
(https://github.com/redhat-developer/yaml-language-server)
2. Try to use it with Kate

OBSERVED RESULT
We run into this bug:
https://github.com/redhat-developer/yaml-language-server/issues/927
and Kate's logs say:

[21:56:04  LSP Client Log] Started server yaml@/home/lengau: /snap/bin/node
/home/lengau/Projects/yaml-language-server/out/server/src/server.js --stdio
[21:56:05  LSP Server Log] yaml@/home/lengau
[Error] Error: workspace/configuration
    at handleResponse
(/home/lengau/Projects/yaml-language-server/node_modules/vscode-jsonrpc/lib/common/connection.js:565:48)
    at handleMessage
(/home/lengau/Projects/yaml-language-server/node_modules/vscode-jsonrpc/lib/common/connection.js:345:13)
    at processMessageQueue
(/home/lengau/Projects/yaml-language-server/node_modules/vscode-jsonrpc/lib/common/connection.js:362:17)
    at Immediate.
(/home/lengau/Projects/yaml-language-server/node_modules/vscode-jsonrpc/lib/common/connection.js:334:13)
    at process.processImmediate (node:internal/timers:483:21)
[21:56:05  LSP Server Log] yaml@/home/lengau
[Error] Error: workspace/configuration
    at handleResponse
(/home/lengau/Projects/yaml-language-server/node_modules/vscode-jsonrpc/lib/common/connection.js:565:48)
    at handleMessage
(/home/lengau/Projects/yaml-language-server/node_modules/vscode-jsonrpc/lib/common/connection.js:345:13)
    at processMessageQueue
(/home/lengau/Projects/yaml-language-server/node_modules/vscode-jsonrpc/lib/common/connection.js:362:17)
    at Immediate.
(/home/lengau/Projects/yaml-language-server/node_modules/vscode-jsonrpc/lib/common/connection.js:334:13)
    at process.processImmediate (node:internal/timers:483:21)

EXPECTED RESULT
It works :-)

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 25.04
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.12.0-15-generic (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon  780M Graphics
Memory: 54.7 GiB of RAM
Graphics Processor: AMD Radeon 780M

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to