Skip to content

g(o)to_definition not working on unsaved file. #477

Closed

Description

@king-c
Error detected while processing function phpactor#ContextMenu[1]..phpactor#rpc[15]..phpactor#_rpc_dispatch[116]..phpactor#rpc[15]..phpactor#_rpc_dispatch[54]..phpactor#_switchToBufferOrEdit:                                                                                   
line    8:
E37: No write since last change (add ! to override)
Error detected while processing function phpactor#ContextMenu[1]..phpactor#rpc[15]..phpactor#_rpc_dispatch[116]..phpactor#rpc[15]..phpactor#_rpc_dispatch:
line   55:
E37: No write since last change (add ! to override)
Press ENTER or type command to continue

This happens when you edit a file but do not save it, then open the context menu and attempt to g(o)to_definition.
As soon as you save the file the error goes away.

Reproduced on
NVIM v0.2.2
Ubuntu 18.04
phpactor installed via vim-plug

Activity

  1. added 2 commits that reference this issue on May 22, 2018
    0e08f70
    dc99362
  2. added a commit that references this issue on May 23, 2018
    fe340fe
  3. added a commit that references this issue on Aug 7, 2018
    d86ebc1
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