【问题标题】:Sublime Text 3's Gitgutter - Git Version could not be acquiredSublime Text 3 的 Gitgutter - 无法获取 Git 版本
【发布时间】:2018-04-02 06:59:01
【问题描述】:

我在 Sublime Text 3 上安装了 Gitgutter 的包,但它似乎不起作用,我调试了支持信息并得到了这个:

  • 崇高文本 3143
  • 平台:windows
  • 拱门:x32
  • GitGutter 1.7.8
  • 通过 PC 安装:是的
  • git版本无法获取!
  • mdpopups 未安装!
  • markdown 未安装!
  • 无法获取pygments版本!
  • jinja2 未安装!

I also tried re-installing it, and still does not compare the scripts with the current HEAD's

我看到 Gitgutter 的实现非常自动化,我不知道它是否与使用 Sourcetree 的 Git 客户端有关。我想我应该引用Git的PATH,我在哪里可以找到它?

如果我可能遗漏了更多必需的信息,请告诉我。谢谢。

【问题讨论】:

    标签: git path package sublimetext3 atlassian-sourcetree


    【解决方案1】:

    错误信息来自modules/support.py

    def git_version():
        """Read version of git binary."""
        try:
            return git('--version')
        except Exception as exception:
            print('%s: %s' % (PACKAGE, exception))
            return 'git version could not be acquired!'
    

    安装过程描述in issue 452

    issue 455中所述:

    安装 git for windows 并注册到 PATH 并从控制台运行后,GitGutter 应该可以在 Windows 上找到它。

    因此,请尝试使用 a simplified PATH 从 CMD 启动您的 SBT,看看问题是否仍然存在。

    【讨论】:

    • 谢谢,它帮我解决了问题,我终于找到了git.exe的路径,并在gittgutter的用户设置中的git_binary上引用了它。
    猜你喜欢
    • 2014-07-02
    • 1970-01-01
    • 2019-10-11
    • 1970-01-01
    • 2017-03-27
    • 2013-09-25
    • 2016-06-28
    • 1970-01-01
    • 2019-06-26
    相关资源
    最近更新 更多