Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.48k stars 171 forks source link

Wanted the setup of working LSP server for PHP #3901

Closed Alexey-T closed 2 years ago

Alexey-T commented 2 years ago

@johntor wrote in #3899

Bad news from here! I couldn't find an LSP Server for PHP working out of the box. First I tried felixfbecker/php-language-server which seemed promising but was released on 2018 and it is depended on other external projects that have changed over the years and now there are 240 Open issues. I tried to some fixes but it is not reliable and is hard to suggest it to simple users.

Then I tried bmewburn/vscode-intelephense which is very nice and it is working great in VSCode. The second is written in ts and needs a lot of patching to fix it for Cud and will be hard to maintain in the future.

Because I have limited spare time these days to get involved, I have to admit defeat!


from Alexey: wanted the working setup for LSP Client for PHP syntax. Like at the end of https://wiki.freepascal.org/CudaText_plugins

18 LSP Client

    18.1 LSP server for Python
    18.2 LSP server for CSS/SCSS/LESS
    18.3 LSP server for Nim
    18.4 LSP server for Rust
    18.5 LSP server for AutoHotkey
    18.6 LSP server for JavaScript/ReactJS
    18.7 LSP servers for C/C++
    18.8 LSP server for Red
Alexey-T commented 2 years ago

OK, updated the wiki

veksha commented 2 years ago

image

composer complains about dom,

image

I install php-dom, it installs php-xml.

i'm not expert in php, don't know what is going on.

Alexey-T commented 2 years ago

Ok, updated wiki