Open ghost opened 11 years ago
Try the python3 branch, so far so good for me.
https://github.com/kemayo/sublime-text-2-git/wiki#more-complex-methods
If you are cloning with git add --branch python3
after git clone
, e.g.:
git clone --branch python3 git://github.com/kemayo/sublime-text-2-git.git Git
@Cottser The git clone
command you gave works 100% on Windows 7, so long as git can be found in the path. Thank you
I followed the same procedure with no luck
DPI scale: 1
startup, version: 3043 windows x64 channel: dev
executable: /D/Portable/Sublime Text 3/sublime_text.exe
working dir: /D/Portable/Sublime Text 3
packages path: /D/Portable/Sublime Text 3/Data/Packages
state path: /D/Portable/Sublime Text 3/Data/Local
hardware concurrency: 4
zip path: /D/Portable/Sublime Text 3/Packages
zip path: /D/Portable/Sublime Text 3/Data/Installed Packages
found 11 files for base name Default.sublime-keymap
found 2 files for base name Default.sublime-mousemap
found 8 files for base name Main.sublime-menu
generating meta info summary
loading pointer bindings
found 1 files for base name Soda Dark.sublime-theme
loading bindings
theme loaded
app ready
wrote startup cache, added files: 4 orphaned files: 0 total files: 280 cache hits: 276
pre session restore time: 0.451371
startup time: 0.533371
first paint time: 0.540371
launching: /D/Portable/Sublime Text 3/plugin_host.exe
loaded 1040 snippets
libs/inflector/Rules/Spanish.py in D:\Portable\Sublime Text 3\Data\Installed Packages\SublimeCodeIntel.sublime-package is not utf-8 encoded, unable to load plugin
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_file_settings
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin AdvancedNewFile.AdvancedNewFile
reloading plugin CoffeeScript.CoffeeScript
reloading plugin Emmet.emmet-plugin
reloading plugin Git.add
Traceback (most recent call last):
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 650, in load_module
exec(source, mod.__dict__)
File "<string>", line 5, in <module>
ImportError: No module named 'git'
reloading plugin Git.annotate
Traceback (most recent call last):
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 650, in load_module
exec(source, mod.__dict__)
File "<string>", line 7, in <module>
ImportError: No module named 'git'
reloading plugin Git.commit
Traceback (most recent call last):
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 650, in load_module
exec(source, mod.__dict__)
File "<string>", line 7, in <module>
ImportError: No module named 'git'
reloading plugin Git.diff
Traceback (most recent call last):
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 650, in load_module
exec(source, mod.__dict__)
File "<string>", line 3, in <module>
ImportError: No module named 'git'
reloading plugin Git.flow
Traceback (most recent call last):
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 650, in load_module
exec(source, mod.__dict__)
File "<string>", line 2, in <module>
ImportError: No module named 'git'
reloading plugin Git.git
Traceback (most recent call last):
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 650, in load_module
exec(source, mod.__dict__)
File "<string>", line 130
except subprocess.CalledProcessError, e:
^
SyntaxError: invalid syntax
reloading plugin Git.history
Traceback (most recent call last):
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 650, in load_module
exec(source, mod.__dict__)
File "<string>", line 5, in <module>
ImportError: No module named 'git'
reloading plugin Git.repo
Traceback (most recent call last):
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 650, in load_module
exec(source, mod.__dict__)
File "<string>", line 4, in <module>
ImportError: No module named 'git'
reloading plugin Git.stash
Traceback (most recent call last):
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 650, in load_module
exec(source, mod.__dict__)
File "<string>", line 1, in <module>
ImportError: No module named 'git'
reloading plugin Git.status
Traceback (most recent call last):
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 650, in load_module
exec(source, mod.__dict__)
File "<string>", line 5, in <module>
ImportError: No module named 'git'
reloading plugin Git.statusbar
Traceback (most recent call last):
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 650, in load_module
exec(source, mod.__dict__)
File "<string>", line 5, in <module>
ImportError: No module named 'git'
reloading plugin SideBarEnhancements.SideBar
Traceback (most recent call last):
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 650, in load_module
exec(source, mod.__dict__)
File "<string>", line 1131
print "Unable to remove file:\n\n"+path
^
SyntaxError: invalid syntax
reloading plugin SideBarEnhancements.StatusBarFileSize
Traceback (most recent call last):
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 650, in load_module
exec(source, mod.__dict__)
File "<string>", line 2, in <module>
ImportError: No module named 'hurry'
reloading plugin SideBarEnhancements.StatusBarModifiedTime
reloading plugin SublimeCodeIntel.SublimeCodeIntel
Traceback (most recent call last):
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 650, in load_module
exec(source, mod.__dict__)
File "<string>", line 568
except Exception, e:
^
SyntaxError: invalid syntax
reloading plugin Package Control.Package Control
reloading plugin SideBarEnhancements.Edit
Traceback (most recent call last):
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1522, in _find_and_load_unlocked
ImportError: No module named 'SideBarEnhancements.Edit'
reloading plugin SideBarEnhancements.SideBarDefaultDisable
Traceback (most recent call last):
File "D:\Portable\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1522, in _find_and_load_unlocked
ImportError: No module named 'SideBarEnhancements.SideBarDefaultDisable'
reloading plugin SublimeLinter.SublimeLinter
SublimeLinter: C loaded
SublimeLinter: CoffeeScript loaded
SublimeLinter: CSS loaded
SublimeLinter: c_cpplint loaded
SublimeLinter: Git Commit Message loaded
SublimeLinter: Ruby Haml loaded
SublimeLinter: HTML loaded
SublimeLinter: Java loaded
SublimeLinter: JavaScript loaded
SublimeLinter: Lua loaded
SublimeLinter: Annotations loaded
SublimeLinter: Perl loaded
SublimeLinter: PHP loaded
SublimeLinter: Puppet loaded
SublimeLinter: Python loaded
SublimeLinter: Ruby loaded
SublimeLinter: pylint loaded
SublimeLinter: XML loaded
plugins loaded
Emmet: No need to update PyV8
Package Control: Skipping automatic upgrade, last run at 2013-06-21 10:45:20, next run at 2013- 06-21 11:45:20 or after
Hi, I'm on the python3
branch with sublime text. However I can't found Git:add
and Git:commit
commands on my package control command list.
@Jiequan, I followed the instructions listed above:
cd ~/.config/sublime-text-3/Packages
git clone --branch python3 git://github.com/kemayo/sublime-text-2-git.git Git
Then restarted and everything worked fine. Remember to execute the command from a file currently in a repo.
Getting the same problem, used the python3 branch using git bash commands as suggested and still it doesn't work.
Haven't tested extensively, but right now the python3 branch is working for me. Had to manually clone the git repo rather than installing via Package Control. Thanks @Cottser :+1:
python3 branch did the job here.
I think I've found the problem. If you have cloned the repo in a folder named git
it does not work. But if you have in a folder named Git
(with uppercased first letter) it works fine.
I guess somewhere the path is hardcoded.
Another confirmation that Package Control installation didn't work for me, but …
cd $HOME/Library/Application\ Support/Sublime\ Text\ 3/Packages && git clone --branch python3 git://github.com/kemayo/sublime-text-2-git.git Git
… + restarting Sublime Text 3 worked.
(OS X 10.8.4 and ST Stable Channel build 3047).
it works, to launch Git commands, use Command Palette (i kept using Goto Anything, by looking at the screen shot).
Change the setting file to specify git path (if you are not using git-flow)
I can confirm that manually installed python3 branch is working on Ubuntu 13.04 x64
It should no longer be necessary to install manually.
Newer versions of Package Control have ST2/ST3 handling. If you have Package Control cloned into "Packages" like I did, it might be time to reinstall. I now have it as a .sublime-package in "Installed Packages". I just deleted the cloned version from Packages and followed the Manual instructions here: https://sublime.wbond.net/installation
I'm sorry, but I have the Package Control setup as you mentioned, but the downloaded plugin doesn't work. I've seen that in the ST repository you have inserted the right branch for versions >= 3, I confirm that the installation goes all well, but the result is that all the "Git" commands are disabled.
If I clone the repo and switch to branch all works as expected instead.