Gist 插件在 Sublime Text 3 中出错

Gist plugin erroring out in Sublime Text 3

我在 OSX Yosemite 上使用 Sublime Text 3 并安装了 Gist 插件。我无法通过浏览包找到 Gist.sublime-settings 文件,所以我只是转到首选项并以这种方式找到它并输入我的 Github 用户名和密码。

这是我在尝试打开或保存 Gists 时遇到的错误

还有其他人 运行 了解这个问题吗? Gist 插件是否适用于 Sublime Text 3?

当用户名/密码无效时,我似乎需要生成一个令牌。

默认的 Gist 插件设置

{
// Your GitHub API token
// see: https://github.com/condemil/Gist#generating-access-token
"token": "",

// Show GitHub organizations
// Example: "company1", "company2"
"include_orgs": [],

// Show GitHub users
// Example: "user1", "user2"
"include_users": [],

// Show the authors of Gists
"show_authors": false,

// Prefer first file name instead of description in Open Gist menu
"prefer_filename": false,

// Proxy server
// Format: "http://user:pass@proxy:port"
"https_proxy": "",

// Enterprise support
"enterprise": false,
// Github URL
// Default: Leave empty if you want to use GitHub.com
// Example: https://github.domain.com
"url": "",

// Max Gists to show (max 100 allowed by GitHub API)
"max_gists": 100,

// Only use starred gists
"use_starred": false,

// Disable the "save file..." dialog when closing a Gist
"supress_save_dialog": true,

// Update the Gist upon saving the file, suppressing the filename dialog.
"save-update-hook": true

// Limit to gists with specific prefix
//"gist_prefix": "Snippet:",

// Limit to gists with specific tag (#tag)
//"gist_tag": "snippet"
}

在此处找到生成令牌的说明: https://github.com/condemil/Gist#generating-access-token

生成令牌后,我将其放入 Gist 插件的用户设置文件中,但仍然出现相同的错误。

成功了!

不是通过 CURL 命令生成令牌: https://github.com/condemil/Gist#generating-access-token

我必须在 Github 上生成一个令牌: https://github.com/settings/applications#personal-access-tokens

它生成了一个字符串,我将其粘贴到 gist-sublime-settings 文件的 "token" 键中,而不是 CURL 命令生成的 JSON。