Skip to content

ftplugin/php.vim not loaded #927

Closed
Closed

Description

@fefas

Hi,

I have just installed phpactor plugin using dein:

call dein#add('phpactor/phpactor', {'on_ft' : 'php', 'build': 'composer install --no-dev -o'}

However, I am getting the following error when trying to execute call phpactor#Status():

Error detected while processing function phpactor#Status[1]..phpactor#rpc:
line    6:
E121: Undefined variable: g:phpactorPhpBin
line    7:
E121: Undefined variable: cmd
E116: Invalid arguments for function system(cmd, json_encode(request))
Error detected while processing function phpactor#Status[1]..phpactor#rpc:
line   13:
E605: Exception not caught: Could not parse response from Phpactor: Vim(let):E121: Undefined variable: result

I could fix it by adding this to my .vimrc:

source ~/.vim/dein/repos/github.com/phpactor/phpactor/ftplugin/php.vim

What should be done to fix this problem? Since there is a check if phpactor is loaded at the beginning of the php.vim script, maybe it could be always included in phpactor.vim.

Activity

  1. dantleech commented on Mar 22, 2020

    @dantleech
    Collaborator

    The VIM plugin is slowly being refactored. It is now better to use the new commands e.g. :PhpactorStatus which will only be available after loading a PHP file.

  2. dantleech commented on Mar 22, 2020

    @dantleech
    Collaborator

    I've updated the documentation in develop to indicate that the command should be used 2cfb349 let me know if that makes sense.

  3. added a commit that references this issue on May 3, 2020
    4fa2345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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