Skip to content

Unclear if coc-phpactor is working with vim9 #27

@vendion

Description

@vendion

I'm trying to get Phpactor and coc-phpactor setup under Vim 9, I have the vim plugin and phpactor itself installed as well as have coc-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

## versions

vim version: VIM - Vi IMproved 9.0 9000000
node version: v16.16.0
coc.nvim version: 0.0.81-2522eee5 2022-06-14 19:03:29 +0800
coc.nvim directory: /home/vendion/.vim/plugged/coc.nvim
term: tmux
platform: linux

## Log of coc.nvim

2022-07-13T16:47:42.366 INFO (pid:2782975) [services] - registered service "languageserver.golang"
2022-07-13T16:47:42.368 INFO (pid:2782975) [services] - registered service "languageserver.ccls"
2022-07-13T16:47:42.368 INFO (pid:2782975) [services] - registered service "languageserver.elvish"
2022-07-13T16:47:42.466 INFO (pid:2782975) [coc-git] - Looking for git in: git
2022-07-13T16:47:42.505 INFO (pid:2782975) [services] - registered service "json"
2022-07-13T16:47:42.506 INFO (pid:2782975) [services] - Json language server state change: stopped => starting
2022-07-13T16:47:42.722 INFO (pid:2782975) [plugin] - coc.nvim initialized with node: v16.16.0 after 591ms
2022-07-13T16:47:42.784 INFO (pid:2782975) [language-client-index] - Language server "phpactor" started with 2783078
2022-07-13T16:47:42.883 INFO (pid:2782975) [services] - Json language server state change: starting => running
2022-07-13T16:47:42.889 INFO (pid:2782975) [services] - service json started
2022-07-13T16:48:03.247 INFO (pid:2782975) [attach] - Request action: commandList [ 'phpa', 'CocCommand phpa', 15 ]
2022-07-13T16:48:07.332 INFO (pid:2782975) [attach] - receive notification: runCommand [ 'phpactor.status' ]
2022-07-13T16:48:07.859 INFO (pid:2782975) [attach] - receive notification: highlight []
2022-07-13T16:48:07.860 INFO (pid:2782975) [attach] - receive notification: highlight []
2022-07-13T16:48:09.717 INFO (pid:2782975) [attach] - receive notification: highlight []
2022-07-13T16:48:09.718 INFO (pid:2782975) [attach] - receive notification: highlight []
2022-07-13T16:48:32.135 INFO (pid:2782975) [attach] - receive notification: highlight []
2022-07-13T16:48:32.137 INFO (pid:2782975) [attach] - receive notification: highlight []
2022-07-13T16:48:38.580 INFO (pid:2782975) [attach] - receive notification: showInfo []

Output of :PhpactorStatus

Version: "2b995dce (13 hours ago) Add-initial-support-for-templated-class-string
Filesystems: git, simple, composer
Working directory: /home/vendion/work/Juice4-STS6

Config files (missing is not bad):

✘ /home/vendion/.config/phpactor/phpactor.json
✘ /home/vendion/.config/phpactor/phpactor.yml
✘ /home/vendion/work/Juice4-STS6/.phpactor.json
✘ /home/vendion/work/Juice4-STS6/.phpactor.yml

Diagnostics:

✔ Composer detected - Phpactor could work faster without an index
✔ Git detected - enables faster refactorings in your repository scope!
✔ XDebug is disabled. XDebug has a negative effect on performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions