New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full Sublime Text 3 compatibility. #69
Conversation
👍 please pull |
Amen! Would love this |
+1 |
This is what I get in the error log File "/Users/.../Sublime Text 3/Packages/Gist/gist.py", line 337, in api_request_native |
@jcontonio This is one of the many fixes already in the pull request. |
Ah cool thanks @cluther |
any chance it would get merged? at least to different branch? |
I get this error whenever trying to do anything with the plugin. My
Current Build is: 3021 |
I just amended the pull request with a fix to the problem @ninnypants reported. I don't know how this was working for me previously. I had to move all of the initialization code out of the module scope to comply with the new Sublime Text 3 API, specifically the "Restricted API Usage at Startup" section of the following document. |
thank you @cluther, for now I've cloned your python3 repo and it's working. |
thanks @cluther i can create private gists with your fork, though I can't open gists.. good enough! |
@ptim: If you open the Sublime Text console and attempt to open a gist, do you see any errors? This works for me, but it's pretty slow and I only have ~50 gists. |
@cluther i see:
|
@ptim Do you use any non-default parameters in your Gist.sublime-settings? Such as include_orgs, include_users, show_authors or other? Can you show your Gist.sublime-settings with credentials removed? I can't reproduce this, and am having a hard time guessing what could be going on just from that traceback and the code. Do you have any gists? Considering that you're able to create private gists, I'm assuming you do. But it can't hurt to ask. |
thanks for the help @cluther - i think that include_orgs was the culprit - i set it to false and I can now create, open, update - awesome! thanks! For reference, my user settings:
|
@ptim you probably want to remove your access credentials from those settings... |
how embarrassing!!! tx for the heads up @nathankot ... I had replaced them with ### as above, but looks like there was a markdown preview/save glitch :( PW changed, API regenerated. |
@cluther So I forgot to come back and let you know that cleared up the problem for me. Though I do have a problem when listing gists. Sublime Text will spin and actually go unresponsive for a second then pop up the error.
|
@cluther If I use your python3 branch I get the following error (the same as a commentor earlier, though you told him this is fixed in the pull request):
|
@Tyderion: The file and line number in that error don't correspond to what's in my python3 branch. Are you sure you have the latest of the python3 branch of the cluther/Gist repository? |
@cluther HA! thanks for the tip, I forgot to checkout the python3 branch xD now that is a stupid mistake :) |
Any chance this will be merged soon? |
take a look at sublime-github instead. Works great in sublime text 3. |
Thanks @mhenrixon. That looks like the way to go. |
The python version for Linux isn't compiled with SSL 😢, so i get this error:
|
I've been trying to port some of my favorite Sublime Text 2 plugins to Sublime Text 3.
I believe I've tested all functionality and have everything working in ST2. However, it isn't backwards compatible with ST2.
I'll let you decide how you want to handle compatibility. I see that you were making some initial attempt at importing from future to attempt to keep it compatible. I plan on keeping this in a python3 branch for now, and certainly wouldn't mind if you did the same.
Thanks for the plugin!