-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unclear if coc-phpactor is working with vim9 #27
Comments
hm, as far as CoC or other LSP clients are concerned Phpactor is agnostic to the VIM version. Does it work in Neovim? you coud enable logging in Phpactor to see if it's getting any requests: https://phpactor.readthedocs.io/en/master/other/developing.html |
I don't have Neovim installed or even configured, but I did enable logging and it does seem to be getting requests from CoC. |
hm I don't see any requests in that log, looks like it's just indexing.... |
Okay let's try this one including a screenshot showing that CoC is requesting hover information: |
I do know that CoC works, as I have no problem with the Go, Vim, Perl, Elvish language servers and even coc-phpls (using Intelephense) works with this same project (would just rather use an open source solution and Phpactor looks like the better option). |
ah, may be you need to enable trace: https://phpactor.readthedocs.io/en/master/reference/configuration.html#language-server-trace then grep for |
Doing so I see tho following line in the log:
|
ok, not sure if it's interesting but it's using a UUID for the response for the first request, and the second request is issuing (from the client and ID of 1). Will try CoC with Neovim (which I used for years before switching to the native LSP client) else maybe it's somehow a difference with CoC and VIM 9 that Phpactor doesn't handle properly. |
Can confirm that Phpactor + CoC + Neovim work so maybe a complication with vim 9 :/ |
I am actually using Vim 9 with coc and phpactor and I didn't notice any particular issue. |
hm, running in Windows by the looks of the screenshot? On WSL? Wonder if that complicates it somehow (Phpactor is not compatible with Windows AFAIK, but I guess it runs on WSL) |
@vendion's screenshot seems from KDE. I am using Xubuntu and all is working correctly! |
oh well, i seem to be not up to date on either Windows or KDE 😄 |
I am indeed using KDE using Arch Linux as my distribution. |
Just to clarify is there anything special that needs to be set in coc-settings.json apart from Here is what I have in mine {
"languageserver": {
"ccls": {
"command": "ccls",
"filetypes": ["c", "cc", "cpp", "c++", "objc", "objcpp"],
"rootPatterns": [".ccls", "compile_commands.json", ".git/", ".hg/"],
"initializationOptions": {
"cache": {
"directory": "/tmp/ccls"
}
}
},
"elvish": {
"command": "elvish",
"args": ["-lsp"],
"filetypes": ["elvish"],
"rootPatterns": [".elv"]
}
},
"intelephense.licenceKey": "(redacted)",
"diagnostic.displayByAle": true,
"phpls.enable": false,
"phpactor.enable": true,
"phpactor.path": "$HOME/.vim/plugged/phpactor/bin/phpactor",
"Lua.telemetry.enable": true
} |
my setup is a ltittle different, but not sure it would make a diff:
|
I thought I had it figured out, as I opened a different project, one that is built on Laravel, and phpactor worked there so I thought it was just an issue between that project and phpactor. What caused me to have doubts is I recently setup neovim + native LSP and phpactor is working without any issues in both projects. 🤷 |
I'm trying to get
Phpactor
andcoc-phpactor
setup under Vim 9, I have the vim plugin andphpactor
itself installed as well as havecoc-phpactor
installed and enabled.The problem is it seems that Coc.nvim isn't able to talk to
phpactor
, what I mean by this is things like:CocCommand phpactor.status
,:CocCommand phpactor.reindex
,:CocCommand phpactor.services.list
generate no output when ran, there is no code completion offered, and things like Hover and GoTo Definiton just hang forever.Output of
:CocInfo
Output of
:PhpactorStatus
The text was updated successfully, but these errors were encountered: