正在尝试将Textmate与Git包一起使用。在尝试任何选项时遇到错误。
/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
相同的目录。他真的迷路了,正在寻求帮助。
发布于 2009-12-31 10:48:49
我也犯了同样的错误。对于我来说,在终端中更新git包解决了这个问题:
$ cd ~/Library/Application\ Support/TextMate/Bundles/Git.tmbundle/
$ git pull
在TextMate重新启动后,问题应该会消失。
发布于 2009-12-29 09:16:40
如果查看source code of git.rb,您将看到它查找以下用于确定路径的环境变量:
TM_SELECTED_FILES
'TM_PROJECT_DIRECTORY
'TM_FILEPATH
'TM_DIRECTORY
'因此,要开始调试,您可以查看为什么没有设置这些变量。
发布于 2011-09-04 04:34:37
似乎你只能在打开Git管理的文件夹中的文件时运行Git包命令。尝试在Git存储库中打开一个文件,"Git Update“将开始工作。
https://stackoverflow.com/questions/1972935
复制相似问题