Home Download Buy Blog Forum Support

Package Control: A full-featured package manager

Re: Package Control: A full-featured package manager

Postby iamntz on Mon Aug 22, 2011 2:17 pm

Did you manually set the git_binary setting in the Package Control settings? Can you try browsing to the package folder that is a git repository and executing "git fetch"?

The Package Control folder is empty. I re-downloaded the sublime-package file mentioned above but no luck. I tried to clone the github repo but that didnt worked either.

For git config i have this:
Code: Select all
"git_binary": "C:\\cygwin\\git\\bin"


(also tried to specify git.exe and / instead of \\). Same error.
iamntz
 
Posts: 906
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Package Control: A full-featured package manager

Postby wbond on Mon Aug 22, 2011 2:22 pm

iamntz wrote:For git config i have this:
Code: Select all
"git_binary": "C:\\cygwin\\git\\bin"


Aha! So the git_binary setting should include the executable name. I'll make the documentation more clear on this. Here is a config that should work:

Code: Select all
"git_binary": "C:\\cygwin\\git\\bin\\git.exe"
wbond
 
Posts: 527
Joined: Mon Feb 28, 2011 5:33 am

Re: Package Control: A full-featured package manager

Postby iamntz on Mon Aug 22, 2011 2:33 pm

Yeah, that didnt worked either. I tried before.
Still got this:
Code: Select all
Exception in thread Thread-2:
Traceback (most recent call last):
  File ".\threading.py", line 532, in __bootstrap_inner
  File ".\Package Control.py", line 1522, in run
  File ".\Package Control.py", line 1099, in make_package_list
  File ".\Package Control.py", line 518, in incoming
  File ".\Package Control.py", line 457, in execute
  File ".\subprocess.py", line 633, in __init__
  File ".\subprocess.py", line 842, in _execute_child
WindowsError: [Error 5] Access is denied


However, the main difference is that now i restarted the editor and when i tried to „install packages” i got like 10 errors like:
Code: Select all
Package Control: Downloading http://sublime.wbond.net/packages.json timed out, trying again

(different urls tho)
iamntz
 
Posts: 906
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Package Control: A full-featured package manager

Postby wbond on Mon Aug 22, 2011 2:55 pm

iamntz wrote:Yeah, that didnt worked either. I tried before.
Still got this:
Code: Select all
Exception in thread Thread-2:
Traceback (most recent call last):
  File ".\threading.py", line 532, in __bootstrap_inner
  File ".\Package Control.py", line 1522, in run
  File ".\Package Control.py", line 1099, in make_package_list
  File ".\Package Control.py", line 518, in incoming
  File ".\Package Control.py", line 457, in execute
  File ".\subprocess.py", line 633, in __init__
  File ".\subprocess.py", line 842, in _execute_child
WindowsError: [Error 5] Access is denied


There definitely seems to be a permissions issue on your machine somewhere. Did you try running "git fetch" on the package you have that is a git repository? I just installed cygwin and set my git_binary setting and everything worked fine. The only difference I see is that mine installed to C:\cygwin\bin\git.exe instead of C:\cygwin\git\bin\git.exe.

iamntz wrote:However, the main difference is that now i restarted the editor and when i tried to „install packages” i got like 10 errors like:
Code: Select all
Package Control: Downloading http://sublime.wbond.net/packages.json timed out, trying again

(different urls tho)


This is ok, just a diagnostic message. If you get a real error a message will pop up. By default the timeout is set to 3 seconds, which sometimes is too short depending on how heavily loaded the server is. If you do consistently get an error popup, you can increase the timeout in the Preferences > Package Settings > Package Control > Settings - User file.
wbond
 
Posts: 527
Joined: Mon Feb 28, 2011 5:33 am

Re: Package Control: A full-featured package manager

Postby iamntz on Mon Aug 22, 2011 3:11 pm

There definitely seems to be a permissions issue on your machine somewhere

Grrr. Everything else works just fine. There are few "WindowsError: [Error 5] Access is denied" related results on google (and stackoverflow) that suggest the issue is python.

Anyhow, don't worry, i don't really need the PM, i was more like curious. :shock:
iamntz
 
Posts: 906
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Package Control: A full-featured package manager

Postby wbond on Mon Aug 22, 2011 3:36 pm

iamntz wrote:Grrr. Everything else works just fine. There are few "WindowsError: [Error 5] Access is denied" related results on google (and stackoverflow) that suggest the issue is python.


I apologize if I sounded patronizing. If you would oblige me a minute longer, could you edit the execute() method of the VcsUpgrader class on line 449 of Package Control.py to be the following?

Code: Select all
    def execute(self, args, dir):
        startupinfo = None
        if os.name == 'nt':
            startupinfo = subprocess.STARTUPINFO()
            startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
        print args
        print dir
        proc = subprocess.Popen(args, stdin=subprocess.PIPE,
            stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
            startupinfo=startupinfo, cwd=dir)

        return proc.stdout.read().replace('\r\n', '\n').rstrip(' \n\r')


When you save the file, it should automatically try to execute the upgrader, and it should print what it is trying to execute and the directory it is trying to execute in.
wbond
 
Posts: 527
Joined: Mon Feb 28, 2011 5:33 am

Re: Package Control: A full-featured package manager

Postby iamntz on Mon Aug 22, 2011 4:01 pm

Yeah, i think i found the problem. Somehow.
I deleted the user folder and now seems to work. Let's see which one is bitchin!
iamntz
 
Posts: 906
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Package Control: A full-featured package manager

Postby iamntz on Mon Aug 22, 2011 4:12 pm

Ok, me dumb. I had a Package Control.sublime-settings file into user directory with wrong stuff in it. The thing is the file was automatically added (and i just edit the file within package control directory).
Now seems to work.

Thanks for help!
iamntz
 
Posts: 906
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Package Control: A full-featured package manager

Postby wbond on Mon Aug 22, 2011 4:29 pm

iamntz wrote:Ok, me dumb. I had a Package Control.sublime-settings file into user directory with wrong stuff in it. The thing is the file was automatically added (and i just edit the file within package control directory).
Now seems to work.

Thanks for help!


No worries, I'm glad you figured it out! Just so you know, you should edit the settings file in the User directory because the one in the Package Control directory gets overwritten whenever Package Control updates itself. The Preferences > Package Settings > Package Control > Settings – User menu entry opens the one in your User directory because of this. This is also the case for all of the other " – Default" and " – User" menu entries in the Preferences menu. All of the Default ones will be overwritten when you next upgrade Sublime Text.
wbond
 
Posts: 527
Joined: Mon Feb 28, 2011 5:33 am

Re: Package Control: A full-featured package manager

Postby iamntz on Mon Aug 22, 2011 4:39 pm

I know, i know. I started to edit the main settings file as a desperate measure, when i saw that the plugin didn't worked.
Oh well... :D
iamntz
 
Posts: 906
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 9 guests