condemil / gist

Sublime Text plugin for creating new Gists from selected text
MIT License
725 stars 136 forks source link

Gist menu items greyed out #184

Open liverezPatterns opened 7 years ago

liverezPatterns commented 7 years ago

OS: Mac OS OS Version: 10.12.5 Sublime Text Version: 2

Gist User Settings (without your secret token):

{
    // 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"
}

Steps to reproduce the issue:

CTRL + Shift + P and Gist options are non-existent. Plus, when trying to use from menu options, they are greyed out

Additional information (error message / screenshot):

c__users_liverez_appdata_roaming_sublime_text_2_packages_user_gist_sublime-settings__responsive-1__-_sublime_text_2__unregistered_

c__users_liverez_appdata_roaming_sublime_text_2_packages_user_gist_sublime-settings__responsive-1__-_sublime_text_2__unregistered_

faouzzz commented 7 years ago

same here Mac OS 10.12.4 Sublime Text 3

faouzzz commented 7 years ago

you need add this to your user settings file, maybe due to a new version of Gist It worked for me.

// Github URL for public & enterprise
    // Default: https://api.github.com for github.com
    // Example: https://github.domain.com/api/v3
    "api_url": "https://api.github.com",

https://github.com/condemil/Gist/blob/master/gist_80.py#L222 sent me to https://github.com/condemil/Gist/blob/master/gist_80.py#L227 sent me to https://github.com/condemil/Gist/blob/master/gist_80.py#L36 and found https://github.com/condemil/Gist/blob/master/gist_80.py#L43

liverezPatterns commented 7 years ago

👎 Still no dice. Sublime Text 2. Even create a brand new token

cjwebdev commented 7 years ago

Thanks faouzz that worked for me after restarting ST3 as well.