claytonlemons / subforce Goto Github PK
View Code? Open in Web Editor NEWPerforce plugin for Sublime Text 3 that leverages the P4Python API.
License: MIT License
Perforce plugin for Sublime Text 3 that leverages the P4Python API.
License: MIT License
Repro steps:
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.
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
Worth noting that I am relying on a .p4config.txt
at the root of my 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 (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'."
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.