Bug 439671 - Intelephense LSP Failed to apply changes to file
Summary: Intelephense LSP Failed to apply changes to file
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: application (other bugs)
Version First Reported In: 21.04.1
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-09 10:33 UTC by ardi
Modified: 2021-07-25 03:49 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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