Skip to content

IndexError when saving new files in workspace #4

Description

@douglaslassance

Traceback

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\Lib\python33\sublime_plugin.py", line 896, in on_pre_save
    run_view_callbacks('on_pre_save', view_id)
  File "C:\Program Files\Sublime Text 3\Lib\python33\sublime_plugin.py", line 708, in run_view_callbacks
    callback(v, *args)
  File "C:\Program Files\Sublime Text 3\Lib\python33\sublime_plugin.py", line 152, in profiler
    return event_handler(*args)
  File "C:\Users\User\AppData\Roaming\Sublime Text 3\Installed Packages\Subforce - Perforce for Sublime.sublime-package\Subforce.py", line 300, in on_pre_save
    if "action" in stat[0]:
IndexError: list index out of range

Repro

  • File > New File > whatever.txt
  • File > Save

Worth noting that I am relying on a .p4config.txt at the root of my workspace.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions