kemayo / sublime-text-git

Plugin for some git integration into sublime text
MIT License
2.83k stars 391 forks source link

ST3: Git blame cannot find file .tmLanguage #283

Open russen opened 11 years ago

russen commented 11 years ago

When I invoke the 'Git: Blame' command, I get this error:

Error loading syntax file "Installed Packages/Git.sublime-package/syntax/Git Blame.tmLanguage": Unable to open Installed Packages/Git.sublime-package/syntax/Git Blame.tmLanguage

console shows, likewise error: error: Error loading syntax file "Installed Packages/Git.sublime-package/syntax/Git Blame.tmLanguage": Unable to open Installed Packages/Git.sublime-package/syntax/Git Blame.tmLanguage

I checked my Installed Packages directory, and the Git.sublime-package is a binary file, not a directory, so I'm not sure why it'd be looking for the .tmLanguage in that location.


I installed the package with the 'python3' branch as referenced in other Issues.

godbout commented 11 years ago

Happened to me with git commit. I had 2 Git packages installed actually, one through Package Control, one through git clone. For ST3 I think only the git clone version is working so @russen if you have both, just remove the package through Package Control and only install the git clone version. Once you install, you need to track and switch to the python3 branch. Working for me fine after that.

edgarjs commented 11 years ago

hey @godbout I tried to do that, but even after I delete the Package Control one, it seems to "re-add" it to "Installed Packages". Not sure why it's always doing that.

godbout commented 11 years ago

@edgarjs yeah you're right. Actually it's not the first time I do it and yes I was wondering why I ended up with the same issue. Changed machine in between, I thought it was that. Hum, annoying then.

chendesheng commented 11 years ago

Change Packages/Git/git.py:line 14 to " PLUGIN_DIRECTORY = 'Packages/Git' " should work.

godbout commented 11 years ago

working, thanks @ichendesheng

jnevelson commented 11 years ago

Fixed for me as well, thanks for that @ichendesheng!

AstraLuma commented 11 years ago

Also an issue on Linux, changing git.py inside of Installed Packages/Git.sublime-package (it's just a zip file) as described above fixes it.