Giter Club home page Giter Club logo

subforce's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

subforce's Issues

Sublime text UI is much slower when this plugin is enabled

Repro steps:

  1. Open any folder (including one not controlled by perforce) in sublime text
  2. Open 3 or 4 tabs of text files/source code
  3. Click between tabs
  4. Install SUBForce plugin and restart sublime text
  5. Click between tabs

Expected:
Tab switch speed in step 5 is just as fast as step 3

Actual:
Huge different in tab switching speed between step 5 and step 3. It's to the point where sometimes the system will hang for a short time, and you'll accidentally tear out the tab.

IndexError when saving new files in workspace

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.

P4.P4Exception when saving a file outside of workspace

It's pretty common to open a file that is not part of the workspace in the context of a given SublimeText project. It seems to me that Subforce should understand this file is not part of the workspace and therefore not try to perform any specific Perforce operations on it.

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 299, in on_pre_save
    stat = p4.run_fstat(fileName) # check if file is in depot
  File "C:\Users\User\AppData\Roaming\SUBLIM~1\Packages\SUBLIM~3\ST3_WI~2\P4.py", line 497, in <lambda>
    return lambda *args, **kargs: self.run(cmd, *args, **kargs)
  File "C:\Users\User\AppData\Roaming\SUBLIM~1\Packages\SUBLIM~3\ST3_WI~2\P4.py", line 609, in run
    raise e
  File "C:\Users\User\AppData\Roaming\SUBLIM~1\Packages\SUBLIM~3\ST3_WI~2\P4.py", line 605, in run
    result = P4API.P4Adapter.run(self, *flatArgs)
P4.P4Exception: [P4#run] Errors during command execution( "p4 fstat C:\Users\User\AppData\Roaming\Sublime Text 3\Packages\User\Subforce.sublime-settings" )

	[Error]: "Path 'C:\\Users\\User\\AppData\\Roaming\\Sublime Text 3\\Packages\\User\\Subforce.sublime-settings' is not under client's root 'C:\\my_workspace_root'."

Installation problem

I'm trying to use this plugin but I've hit a roadblock.

I've installed it both with Package Control and also manually and every time I get the same result. First off I can't see any confirmation that the plugin was installed at all. I go into Preference->Package Settings but Subforce is not in there. None of the other menus have any mention of Subforce either. So I don't know how I would control it, like logging in, checking out, etc. I opened up the command console and I see the following message:

File "C:\Users\sbernal\AppData\Roaming\Sublime Text 3\Packages\Subforce\Subforce.py", line 66, in __init__

KeyError: 'folder'

Any ideas??

Thanx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.