CDuke / sublime-tfs

Use TFS inside Sublime Text 2/3
5 stars 4 forks source link

Access is Denied #10

Closed CDuke closed 8 years ago

CDuke commented 10 years ago

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


CDuke commented 10 years ago

Original comment by spicydonuts (Bitbucket: spicydonuts, GitHub: spicydonuts):


That did the trick. Thanks a bunch!

CDuke commented 10 years ago

Original comment by Konstantin Kabanov (Bitbucket: DarkOverlord, GitHub: DarkOverlord):


@spicydonuts, please, check new version of plugin.