Bug 466321

Summary: java LSP servers can throw errors due to spaces in file URI
Product: [Applications] kate Reporter: kde
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: waqar.17a
Priority: NOR    
Version First Reported In: 22.12.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 23.04
Sentry Crash Report:

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.