Bug 439671

Summary: Intelephense LSP Failed to apply changes to file
Product: [Applications] kate Reporter: ardi <ardi93>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: 21.04.1   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description ardi 2021-07-09 10:33:30 UTC
SUMMARY
I have installed version 21.04.1 on Manjaro Linux. I also have Intelephense LSP installed and added to PATH. It can be used from other text editor such as Sublime Text, Atom, or VSCode. Intelephense can be started successfully from Kate, but failed to provide autocompletion or any other feature.

STEPS TO REPRODUCE
1. Add Intelephense configuration to kate_lsp_client.json
2. Open PHP project folder
3. Open PHP file from project
4. Try calling autocompletion feature

OBSERVED RESULT
17:17:01 LSP Server Warning intelephense@/home/path/to/project 
Failed to apply changes to file://home/path/to/project/src/File.php

EXPECTED RESULT
LSP features should work

SOFTWARE/OS VERSIONS
Linux: Manjaro with GNOME 40.1.0

ADDITIONAL INFORMATION
LSP configuration

"intelephense": {
    "command": ["/usr/bin/intelephense", "--stdio"],
    "url": "https://github.com/bmewburn/intelephense-docs",
    "highlightingModeRegex": "^PHP.*$",
    "rootIndicationFileNames": ["composer.json"]
}
Comment 1 ardi 2021-07-25 03:47:54 UTC
I am sorry, I think the error happened because of may faulty config. I put `intelephense` instead of `php` as a key in the configuration. This is my working configuration for Kate Editor : 

"php": {
    "command": ["/usr/bin/intelephense", "--stdio", "--debug"],
    "url": "https://github.com/bmewburn/intelephense-docs",
    "highlightingModeRegex": "^PHP.*$",
    "rootIndicationFileNames": ["composer.json"]
},
Comment 2 ardi 2021-07-25 03:48:58 UTC
Related thread at Intelephense issue page in Github : https://github.com/bmewburn/intelephense-docs/issues/44