phpactor: I can't get phpactor to work with coc
I’ve seen that phpactor might work on coc, but I don’t really know how to proceed, these have been my steps so far:
- Install coc on nvim, on vimrc:
Plug 'neoclide/coc.nvim', {'branch': 'release'} - Install phpactors coc-extension, on nvim:
:CocInstall coc-phpactor - Install phpactor globally and created a symlink to make it a command
sudo ln -s ~/phpactor/bin/phpactor /usr/local/bin - Configure coc-phpactor extension, from nvim do
:CocConfig, and created this settings:
{
"languageserver": {
"phpactor": {
"command": "phpactor",
"trace.server": "verbose",
"filetypes": ["php"]
}
}
}
With these, I restarted nvim, opened a PHP file with some issues:
- On airline I see a message
Starting LS languageserver.phpactorgoing forever. - No autocompletion suggestions (other than the nvim’s default autocompletion)
- Trying to GoToDefinition tells on airline:
[coc.nvim] Definition provider not found for current document
Also, just to try out coc I also installed the json extension and everything works perfectly on json files.
Did I miss any configuration step?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 21 (9 by maintainers)
Well, to be fair it was my first coc extension ever. But I agree with documenting it. I dunno why coc-phpactor failed in my case, are there any more logs I can pass you? Anyway, it’s working 😃 Thanks!