Bug 466321 - java LSP servers can throw errors due to spaces in file URI
Summary: java LSP servers can throw errors due to spaces in file URI
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 22.12.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-23 20:37 UTC by kde
Modified: 2023-02-24 08:54 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kde 2023-02-23 20:37:55 UTC
SUMMARY

I thought this was a problem with [jdtls](https://github.com/eclipse/eclipse.jdt.ls) at first, but then I tested the [java-language-server](https://github.com/georgewfraser/java-language-server) based on javac, and it threw me the exact same error - I don't know about any of the LSP backend stuff, but if they both seemingly work with vscode, there must be something wrong with kate.

If I'm wrong in some way, then I'm sorry for wasting your time :sweat_smile: 


STEPS TO REPRODUCE
1. install java-language server including custom config for kate's LSP plugin
2. open a file in a path with a space
3. errors will show within the kate output

OBSERVED RESULT

LSP server errors out and doesn't work as a result

EXPECTED RESULT

LSP server works as advertised

SOFTWARE/OS VERSIONS

Arch Linux: 6.1.10-x64v1-xanmod
KDED: 5.103.0
Qt Version: Qt5.15.8+kde+r181 and Qt6.4.2

ADDITIONAL INFORMATION
Comment 1 Waqar Ahmed 2023-02-24 06:14:53 UTC
This is already fixed in master
Comment 2 kde 2023-02-24 08:54:31 UTC
(In reply to Waqar Ahmed from comment #1)
> This is already fixed in master

oh, thanks! I wasn't aware.