2009-12-29 95 views
1

尝试将Textmate与Git包一起使用。尝试任何选项时遇到错误。使用Git包获取Textmate的错误

/Users/colby/Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/../lib/git.rb:131:in `paths': No selected files. (RuntimeError) from /Users/colby/Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/../lib/git.rb:80:in `path' from /Users/colby/Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/../lib/git.rb:199:in `merge_message' from /Users/colby/Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/../app/controllers/commit_controller.rb:6:in `index' from /Users/colby/Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/lib/application_controller.rb:105:in `send' from /Users/colby/Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/lib/application_controller.rb:105:in `call' from /Users/colby/Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/lib/application_controller.rb:94:in `with_filters' from /Users/colby/Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/lib/application_controller.rb:105:in `call' from /Users/colby/Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/lib/application_controller.rb:112:in `call' from /Users/colby/Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/tmvc.rb:56:in `dispatch_normal' from /Users/colby/Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/tmvc.rb:74:in `dispatch' from /Users/colby/Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/tmvc.rb:96:in `dispatch' from /tmp/temp_textmate.hNAQFu:4 

TM_GIT被设置为相同的目录为which git。真的失去了,寻找任何帮助。

回答

3

我有完全相同的错误。对我来说,更新在终端git的捆绑解决了这个问题:

$ cd ~/Library/Application\ Support/TextMate/Bundles/Git.tmbundle/ 
$ git pull 

一个TextMate的后重启问题应消失。

0

如果你看一下source code of git.rb,你会看到它看起来对以下环境变量来确定路径:

  • 'TM_SELECTED_FILES'
  • 'TM_PROJECT_DIRECTORY'
  • 'TM_FILEPATH'
  • TM_DIRECTORY'

所以要开始调试,你可以看看为什么这些变量没有设置。

0

看来您只能在Git托管文件夹中打开文件时运行Git捆绑包命令。 尝试在Git存储库中打开文件,并且“Git Update”将开始工作。