Skip to content

VSCode perforce plugin throws error when trying to revert a file opened for edit. #300

@andersjj

Description

@andersjj

Describe the bug:
Getting an error when trying to revert a file that has been opened for edit

Expected behavior:
File is reverted and made non-writable

To Reproduce:
Select a file - right click select Perforce > Edit
Log shows
/var/www/html/user: p4 'edit' '/var/www/html/user/boot.html'
< //DEPOTNAME/boot.html#8 - opened for edit

Everything fine, but when trying to revert same file
/var/www/html/user: p4 'revert' '/var/www/html/user/boot.html'
ERROR: "'audit_log' validation failed: /var/www/html/user/boot.html - must create client 'perforce_server' to access local files.\n"

Works fine when I go to server and do following via CLI

p4 revert //DEPOTNAME/boot.html

The file is reverted and everything looks fine in P4V

Versions & Details:

  • Perforce extension: 4.16.1
  • VSCode version: 1.100.2
  • Operating System: red-hat linux
  • Perforce server details (if known):
  • Are you using a multi-root workspace?: Yes/No

Additional context

Details

Relevant log entries shown above

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions