Home Download Buy Blog Forum Support

Package Control: A full-featured package manager

Re: Package Control: A full-featured package manager

Postby wbond on Sat Aug 20, 2011 3:14 pm

aparajita wrote:I want to submit a new package for inclusion in the package repo, how do I go about it?


You can either send a pull request via github or bitbucket, or email me at will@wbond.net. The github and bitbucket repository links are in the original post viewtopic.php?f=5&t=2746#p12731.
wbond
 
Posts: 534
Joined: Mon Feb 28, 2011 5:33 am

Re: Package Control: A full-featured package manager

Postby aparajita on Sun Aug 21, 2011 4:26 am

Anomareh wrote:Although they seem very similar on paper, internally they are rather different. The original is much stabler and snappier. With the fork everything config wise is quite different.


If the original is much stabler, then I will definitely give it a try and port my stuff to that.
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: Package Control: A full-featured package manager

Postby ehamiter on Sun Aug 21, 2011 10:02 pm

Anomareh wrote:Although they seem very similar on paper, internally they are rather different. The original is much stabler and snappier. With the fork everything config wise is quite different.

Agreed. Kronuz's fork also has PEP8 checking built-in, which I don't necessarily want all the time.
ehamiter
 
Posts: 67
Joined: Wed Apr 27, 2011 2:42 am

Re: Package Control: A full-featured package manager

Postby skaet on Mon Aug 22, 2011 8:59 am

This is unbelievable! Just what I've been looking for, and will be a massive quality of life improvement :D

Purchasing the SFTP package just to support your work!
skaet
 
Posts: 93
Joined: Thu Sep 16, 2010 3:37 pm

Re: Package Control: A full-featured package manager

Postby iamntz on Mon Aug 22, 2011 11:23 am

I tried to install using the command line and it does nothing. It creates an empty folder (on st start) and that's all.
I tried to download & install this file: http://sublime.wbond.net/Package%20Control.sublime-package but when i hit install package i get this error in the console:

Code: Select all
Exception in thread Thread-47:
Traceback (most recent call last):
  File ".\threading.py", line 532, in __bootstrap_inner
  File ".\Package Control.py", line 1189, 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
iamntz
 
Posts: 919
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 12:53 pm

iamntz wrote:I tried to install using the command line and it does nothing. It creates an empty folder (on st start) and that's all.
I tried to download & install this file: http://sublime.wbond.net/Package%20Control.sublime-package but when i hit install package i get this error in the console:


I'm looking into this right now.
wbond
 
Posts: 534
Joined: Mon Feb 28, 2011 5:33 am

Re: Package Control: A full-featured package manager

Postby wbond on Mon Aug 22, 2011 1:07 pm

iamntz wrote:I tried to download & install this file: http://sublime.wbond.net/Package%20Control.sublime-package but when i hit install package i get this error in the console:

Code: Select all
Exception in thread Thread-47:
Traceback (most recent call last):
  File ".\threading.py", line 532, in __bootstrap_inner
  File ".\Package Control.py", line 1189, 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


I'm not quite sure why the command line installed would not work. I just took a fresh ST2 environment on Win 7 x64 and it seemed to work fine extracting the files into the Package Control folder. If you want to try and debug it you could delete the Package Control folder and run the console command again. The next time you open ST2 you can look at the console and it should mention that it is installed Package Control. My guess is that there will probably be some error after it begins the process.

From the error message you posted after manually downloading the package, it seems like a file permissions issue with running Git to perform a Git fetch. My guess is that your current user for some reason does not have permission to execute git.exe, which is probably stored in C:\Program Files (x86)\Git\bin\. If you right click and select Properties and then go to the Security tab, there will be a list of users and groups that have permissions. On my machine the Users group has the read and execute permission. For git fetch to get executed, one of your packages must be a git repository. Perhaps the permissions on some files in that repository are broken also?

Let me know what you find out!
wbond
 
Posts: 534
Joined: Mon Feb 28, 2011 5:33 am

Re: Package Control: A full-featured package manager

Postby wbond on Mon Aug 22, 2011 1:21 pm

If anyone gets the following error:

Code: Select all
Package Control: An error occurred while trying to backup the package directory for [package name].


Please execute the following in your console:

Code: Select all
import os;os.makedirs(os.path.join(os.path.dirname(sublime.packages_path()), 'Backup'))
wbond
 
Posts: 534
Joined: Mon Feb 28, 2011 5:33 am

Re: Package Control: A full-featured package manager

Postby iamntz on Mon Aug 22, 2011 1:28 pm

Permissions looks like this: http://screencast.com/t/rb7GnnxJ4t

On startup console i have this (that is related to package control):
Code: Select all
startup, version: 2102 windows x64 channel: dev
executable: /C/Program Files/Sublime Text 2/sublime_text.exe
working dir: /C/Windows/system32
packages path: /C/Users/Ionut/AppData/Roaming/Sublime Text 2/Packages
settings path: /C/Users/Ionut/AppData/Roaming/Sublime Text 2/Settings
error parsing session: No data at: 0:0
package /C/Users/Ionut/AppData/Roaming/Sublime Text 2/Installed Packages/Package Control.sublime-package is newer than the installed version (/C/Users/Ionut/AppData/Roaming/Sublime Text 2/Pristine Packages/Package Control.sublime-package), running PackageSetup
PackageSetup returned: -1
catalogue loaded


Git is installed into c:\cygwin\git and is accesible via windows cmd.

Also, this command:
Code: Select all
import os;os.makedirs(os.path.join(os.path.dirname(sublime.packages_path()), 'Backup'))


give me this:
Code: Select all
>>> import os;os.makedirs(os.path.join(os.path.dirname(sublime.packages_path()), 'Backup'))
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File ".\os.py", line 157, in makedirs
WindowsError: [Error 183] Cannot create a file when that file already exists: u'C:\\Users\\Ionut\\AppData\\Roaming\\Sublime Text 2\\Backup'
iamntz
 
Posts: 919
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 1:53 pm

Yeah, sorry, that Backup command was unrelated to your issues, but a bug someone else found.

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"?
wbond
 
Posts: 534
Joined: Mon Feb 28, 2011 5:33 am

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 6 guests