Giter VIP home page Giter VIP logo

sublime-tfs's People

Contributors

ajryan avatar cduke avatar mdartic avatar overlord avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sublime-tfs's Issues

Access is Denied

Originally reported by: spicydonuts (Bitbucket: spicydonuts, GitHub: spicydonuts)


All TF.exe commands are giving me this error: "PermissionError: [WinError 5] Access is denied"
TF.exe works fine when I run it in cmd, as well as in VS and the Explorer context menu. All of these applications are running under my user account, Windows 8.1 system where my user is tied to my Microsoft account. This is the same account used for my TFS access.

I also gave the patch in Issue #9 a try. It had no effect, but possibly will prevent me having that autocheckout issue once this one is solved.

Running Sublime Text 3 (3059). Here's some more Sublime console output:

#!cmd
Writing file /C/Users/michael/dev/tfs/main/.../file.js with encoding UTF-8 with BOM (atomic)
commands: ['C:/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE', 'status', 'C:\\Users\\michael\\dev\\tfs\\main\\...\\file.js']
is_graph: False
Exception in thread Thread-3:
Traceback (most recent call last):
  File "X/subprocess.py", line 1090, in _execute_child
PermissionError: [WinError 5] Access is denied

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "X/threading.py", line 639, in _bootstrap_inner
  File "C:\Users\michael\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 131, in run
    (self.success, self.message) = self.method(self.m_path)
  File "C:\Users\michael\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 58, in status
    return self.run_command("status", path)
  File "C:\Users\michael\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 73, in run_command
    return self.run_command_py3(commands, is_graph)
  File "C:\Users\michael\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 85, in run_command_py3
    p = self.launch_Without_Console(commands)
  File "C:\Users\michael\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 119, in launch_Without_Console
    return subprocess.Popen(command, stderr=subprocess.PIPE, stdout=subprocess.PIPE, cwd=self.cwd, startupinfo=startupinfo)
  File "X/subprocess.py", line 818, in __init__
  File "X/subprocess.py", line 1096, in _execute_child
PermissionError: [WinError 5] Access is denied

Thanks


Checkout command is not using 'allways_is_graph' setting

Originally reported by: Mathieu DARTIGUES (Bitbucket: mdartic, GitHub: mdartic)


Hello,

With the last update, and the creation of 'allways_is_graph' setting, I think an omission occured for the 'checkout' command.

Here is my version which works :
https://bitbucket.org/mdartic/sublime-tfs-autocheckout_is_graph/pull-request/1/fix-for-checkout-which-was-not-using/diff

Hope it will help!


Sublime TFS does not work in symlinked directories

Originally reported by: Saturn2888 (Bitbucket: Saturn2888, GitHub: Saturn2888)


Because of the way branching in TFS works, I have to create a new Sublime Text project for each branch. I got around this by creating a symlink to my current TFS branch directory and pointing Sublime Text at the symlink.

Sublime TFS doesn't add or checkout files when the file's in the symlinked directory. Why is that?


ST3 - autocheckout not working

Originally reported by: thomas Little (Bitbucket: thomaslittle, GitHub: thomaslittle)


In ST2 the autocheckout has been working fine. I recently upgraded to ST3, and it's no longer auto-checking out my files.

Line 3 of sublime_tfs.sublime.settings is set to true.
"auto_checkout_enabled" : true

It seems nothing happens at all when I begin to edit code and have to manually checkout the file using the TFS context menu.


Get lasted folder

Originally reported by: Anonymous


Working on a team using Sublime TFS to hopefully not need Visual Studio to pull the whole directory when there are changes. However, we dont' see a way to do this without knowing which files are changed or using Team Foundation though Visual Studio to do it first ... is there a way to do this in Sublime TFS that we're missing?


AttributeError: 'NoneType' object has no attribute 'encode'

Originally reported by: Anonymous


Just trying to checkout a file, and I get this error. VS2010, TFS 2010 client (TFS 2013 preview server) Windows 2008 server. I have all the relevant files in the right paths, and power tools as well

commands: [None, 'checkout', u'C:\13\HA\CommerceApplications\Web\Client\Less\ProductDetail\calendar-PFC-product.less']
is_graph: False
Exception in thread Thread-42:
Traceback (most recent call last):
File ".\threading.py", line 532, in __bootstrap_inner
File ".\sublime_tfs.py", line 131, in run
File ".\sublime_tfs.py", line 32, in checkout
File ".\sublime_tfs.py", line 75, in run_command
File ".\sublime_tfs.py", line 95, in run_command_py2
File ".\sublime_tfs.py", line 95, in
AttributeError: 'NoneType' object has no attribute 'encode'


Sublime Text 3 Problem

Originally reported by: Anonymous


When attempting to use the TFS plugin with Sublime Text 3, I receive the following error:

Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 271, in on_modified
callback.on_modified(v)
File "C:\Users\luke.mauldin\AppData\Roaming\Sublime Text 3\Installed Packages\Sublime TFS.sublime-package\sublime_tfs.py", line 220, in on_modified
path = get_unicode_filename(view)
File "C:\Users\luke.mauldin\AppData\Roaming\Sublime Text 3\Installed Packages\Sublime TFS.sublime-package\sublime_tfs.py", line 10, in get_unicode_filename
return unicode(view.file_name()).encode(locale.getpreferredencoding());
NameError: global name 'unicode' is not defined


Update seems to have broken plug-in

Hi,
The last update seems to have broken something. Restarted Sublime (Win7, v3.0 build 3143) and found none of the TFS commands worked. From my console:

Package Control: Installing 1 upgrades
ignored packages updated to: ["Sublime TFS", "Vintage"]
unloading plugin Sublime TFS.sublime_tfs
reloading settings Packages/User/Package Control.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
Package Control: Upgraded Sublime TFS to 2017.12.06.07.28.58
reloading /C/Users/xxxx/AppData/Roaming/Sublime Text 3/Packages/Sublime TFS/sublime_tfs.py
ignored packages updated to: ["Vintage"]
reloading plugin Sublime TFS.sublime_tfs
reloading settings Packages/User/Package Control.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
Exception in thread Thread-7:
Traceback (most recent call last):
  File "C:\Users\xxxx\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 142, in run_command
    working_dir = os.path.dirname(executable)
  File "./python3.3/ntpath.py", line 256, in dirname
  File "./python3.3/ntpath.py", line 220, in split
  File "./python3.3/ntpath.py", line 162, in splitdrive
TypeError: object of type 'NoneType' has no len()

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./python3.3/threading.py", line 901, in _bootstrap_inner
  File "C:\Users\xxxx\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 182, in run
    (self.success, self.message) = self.method(self.m_path)
  File "C:\Users\xxxx\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 77, in checkout
    return self.run_command(commands, path, is_graph = self.always_is_graph)
  File "C:\Users\xxxx\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 153, in run_command
    trace_error("commands: [%s]\nis_graph: [%s]\nworking_dir: [%s]" % (commands, is_graph, working_dir))
UnboundLocalError: local variable 'commands' referenced before assignment

Seems to be having trouble getting the working directory?

Invalid handle error

Originally reported by: Anonymous


Below is the console output of errors attempting to get the status of a file and checking out a file:

commands: [['C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/TF.exe', 'status', 'C:\\User\\KMS\\STS-KMS\\modules\\stskms\\Init-1.0.tm']]
is_graph: [False]
working_dir: [C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE]
Exception in thread Thread-3:
Traceback (most recent call last):
  File "./threading.py", line 901, in _bootstrap_inner
  File "C:\Users\douglasp\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 135, in run
    (self.success, self.message) = self.method(self.m_path)
  File "C:\Users\douglasp\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 81, in status
    return self.run_command(["status"], path)
  File "C:\Users\douglasp\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 103, in run_command
    return self.__run_command(commands_with_credentials, is_graph)
  File "C:\Users\douglasp\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 118, in __run_command
    p = subprocess.Popen(commands, stderr=subprocess.PIPE, stdout=subprocess.PIPE, startupinfo=startup_info)
  File "./subprocess.py", line 789, in __init__
  File "./subprocess.py", line 988, in _get_handles
  File "./subprocess.py", line 1038, in _make_inheritable
OSError: [WinError 6] The handle is invalid

Package Control: No updated packages
commands: [['C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/TF.exe', 'checkout', 'C:\\User\\KMS\\STS-KMS\\modules\\stskms\\Init-1.0.tm']]
is_graph: [False]
working_dir: [C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE]
Exception in thread Thread-5:
Traceback (most recent call last):
  File "./threading.py", line 901, in _bootstrap_inner
  File "C:\Users\douglasp\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 135, in run
    (self.success, self.message) = self.method(self.m_path)
  File "C:\Users\douglasp\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 55, in checkout
    return self.run_command(["checkout"], path)
  File "C:\Users\douglasp\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 103, in run_command
    return self.__run_command(commands_with_credentials, is_graph)
  File "C:\Users\douglasp\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 118, in __run_command
    p = subprocess.Popen(commands, stderr=subprocess.PIPE, stdout=subprocess.PIPE, startupinfo=startup_info)
  File "./subprocess.py", line 789, in __init__
  File "./subprocess.py", line 988, in _get_handles
  File "./subprocess.py", line 1038, in _make_inheritable
OSError: [WinError 6] The handle is invalid

Command for letting TFS autodetect changes

Originally reported by: juristr (Bitbucket: juristr, GitHub: juristr)


What about introducing a command in Sublime TFS for executing

tfpt online <project-root-folder> /recursive /adds /deletes

that instructs TFS to autodetect deletes/adds/edits?? Like I described in this article: http://juristr.com/blog/2012/11/deploying-git-vs-tfs-showdown/

As far as I know this would require the installation of the TFS powertools however.


Annotate commit breaks Sublime TFS for people who don't have TFPT 2010

Originally reported by: Dan Kordik (Bitbucket: dkordik, GitHub: dkordik)


Noticed today that my Sublime TFS no longer works. After looking through the latest commit (9e503db0fb31369c2415a2709f81cb43f66f6f6c) I think I've found the culprit:

  • "tfpt_path": "C:/Program Files (x86)/Microsoft Team Foundation Server 2010 Power Tools/TFPT.exe"

Might want to do a check in the code to see if people have Power Tools, or everyone who doesn't is going to be erroring "WindowsError: [Error 267] The directory name is invalid" like me


Error reports I'm unauthorized to access my repo, without giving me a chance to enter credentials

Originally reported by: Jonathan Hobbs (Bitbucket: jdahobbs, GitHub: jdahobbs)


I've installed the latest Sublime TFS in Sublime Text 3, and attempted to use it to check out a file or Get Latest. When I do, the status bar indicates it's working for a couple of seconds, then I get the following error in the status bar:

TF30063: You are not authorized to access foo.

('foo' here is a placeholder for the name of the repository I'm working with.)

At no point am I actually offered the option to enter any credentials.

I presume that it might be using my current Windows account as credentials. There is a complication with that: I have more than one Windows account in this environment. I use one to log in to a VM and work on Sublime, whilst there is a different account which I use to log in to TFS.

If it uses my current account by default, that seems like useful behaviour I wouldn't ask to have taken away.

However, in the case we need to actually provide credentials, could we be offered the option to do that? The method currently in mind would be to have an item in the TFS menu named "Provide credentials...", which just pops up a log in dialog that we'll use to log in to TFS.


Access is denied

Originally reported by: Dmytro Kozlov (Bitbucket: volzok, GitHub: volzok)


I am heaving exactly the same issue as #10 on all TFS commands in Sublime Text 3065 and VS 2013 in Windows 8.1 x64. Below is the console output:

#!txt

commands: [['C:/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE', 'status', 'C:\\Users\\dmkoov\\Desktop\\NyceLogicClient\\common\\MediatorProxy.ts']]
is_graph: [False]
working_dir: [C:/Program Files (x86)/Microsoft Visual Studio 12.0/Common7]
Exception in thread Thread-17:
Traceback (most recent call last):
  File "./subprocess.py", line 1112, in _execute_child
PermissionError: [WinError 5] Access is denied

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./threading.py", line 901, in _bootstrap_inner
  File "C:\Users\dmkoov\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 115, in run
    (self.success, self.message) = self.method(self.m_path)
  File "C:\Users\dmkoov\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 67, in status
    return self.run_command(["status"], path)
  File "C:\Users\dmkoov\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 83, in run_command
    return self.__run_command(commands, is_graph)
  File "C:\Users\dmkoov\AppData\Roaming\Sublime Text 3\Packages\Sublime TFS\sublime_tfs.py", line 98, in __run_command
    p = subprocess.Popen(commands, stderr=subprocess.PIPE, stdout=subprocess.PIPE, startupinfo=startup_info)
  File "./subprocess.py", line 824, in __init__
  File "./subprocess.py", line 1118, in _execute_child
PermissionError: [WinError 5] Access is denied

Tried "run as admin" - that does nothing.
Thanks in advance.


bug on checkout file

when i checkout a file named ‘/demo/index.html’,then all the files named 'index.html' in the project checkedout

Does it work on MacOS X ?

Hi

I installed the plugin and I see it integrated in Sublime.
I pointed the tf_path to the MacOS Path to tf (TEE-CLC-14.0.3/tf downloaded from https://www.microsoft.com/fr-FR/download/details.aspx?id=47727 ).
I know this utility is working because I managed to tf get my whole project from the CLI.

But when using this plugin, I dont manage to do anything : every command I run ends up after 20 seconds by "Unknown error". Nothing appears in the console

What did I miss ?

Nothing Happens and no errors reported

Originally reported by: Ben Williams (Bitbucket: blw0010, GitHub: blw0010)


(I accidentally reported this anomalously previously)

I just installed Sublime TFS on Sublime Text Build 3059. I have TFS and TFS Power Tools installed. I have verified the settings tf_path and tfpt_path. I have copied the default settings to my user settings.

But whenever I actually try to check something out, nothing happens.


Authentication problems

Originally reported by: Mathieu DARTIGUES (Bitbucket: mdartic, GitHub: mdartic)


My company has changed the authentication with a smartcard.
Credentials in Sublime TFS are user/password, but it does'nt work with smartcard.

I don't know for the moment how to specify the user/password of a smartcard to TF.
But, in setting 'is_graph' to True, it shows to end-user the windows prompt with credentials question.
https://bitbucket.org/mdartic/sublime-tfs-updated/src/42a1ff419ab7e8199bf9927637f82f85faa97743/sublime_tfs.py?at=default#cl-55

How do you think we can solve the problem ?


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.