Closed deevus closed 5 years ago
I've checked to see what processes are running and I can't see php-language-server
in there. I can see that phpcs
runs fine.
Hey deevus, The plugin you've installed seems to be an extension of the LanguageClien-neovim plugin, not ALE. I'll test this and come back to you with the result of my tests
Thank you. I haven't installed the base plugin.
I had trouble installing php-language-server globally (due to dependency conflicts), and I didn't want to install it as part of projects where I'd be the only user of it.
I figured this plugin should work since all it does is bring php-language-server with it and I could configure ALE to use it.
I appreciate your help with this. I'm still searching for the best php experience in vim.
Have a look at :ALEInfo
at see what it's trying to run.
@deevus I may have found the issue:
I expected the issue to come from the language server itself, I was right. Please update your ALE plugin to the latest version and then run this command: composer run-script --working-dir=vendor/felixfbecker/language-server parse-stubs
.
This is how I successfully installed the program by the way (without using the vim plugin) (I wasn't able to install it either):
You need to modify (or create) your user's ~/composer.json
file to contain this:
{
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"felixbecker/language-server": "^5.4"
}
}
Then you can require it with composer to install it for your user. And then you run the command given above.
@Luxed Can you share your ale config to make it work with php-langserver? I finished installing felixbecker/language-server on global. But don't know where to go next.
Thanks.
@rawaludin I unfortunately had to reformat my laptop, so I lost the tests I made.
But, you can still do :h ale-php-languageserver
to get the information on the 2 lines needed for the config to work on a global installation :p
The GitHub issue template now recommends asking for help with configuring ALE on Stack Exchange or Reddit instead.
Np thanks @w0rp
I also set up a Gitter, which is just about ready now, so people can talk on there too.
I've installed the https://github.com/roxma/LanguageServer-php-neovim plugin and set these variables:
When opening a php file I get the following error
I'm pretty sure I'm missing something. Would love some help