Live data from Hacker News

Sublime Text's Plugin API: It's Python, Sort Of

news.floobits.com

1–10 of 46 posts

Re: Sublime Text's Plugin API: It's Python, Sort Of

#3

So this relies on having a system version of python but there's no mention of that requirement anywhere in the repo...

I believe only ST 2 on OS X relies on the system python - 2.6 or whatever python happens to be in the path. Sublime 3 ships with python 3.3 on all platforms.

edit:

If you are asking about the Floobits plugin, ST 2 on OS X shells out to the system python (because of SSL).

Re: Sublime Text's Plugin API: It's Python, Sort Of

#4
Glyph Lefkowitz warned about the dangers of embedding Python a long time ago:

https://twistedmatrix.com/users/glyph/rant/extendit.html

See also this comment of his on Advogato, which he indirectly referenced in the previous article:

http://advogato.org/article/550.html#12

Re: Sublime Text's Plugin API: It's Python, Sort Of

#5
post #3

So this relies on having a system version of python but there's no mention of that requirement anywhere in the repo...

I believe only ST 2 on OS X relies on the system python - 2.6 or whatever python happens to be in the path. Sublime 3 ships with python 3.3 on all platforms. edit: If you are asking about the Floobits plugin, ST 2 on OS X shells out to the system python (because of SSL).

It appears to shell out on windows as well because it needs select. But windows doesn't have a system version of python.

Re: Sublime Text's Plugin API: It's Python, Sort Of

#7
post #3

So this relies on having a system version of python but there's no mention of that requirement anywhere in the repo...

I believe only ST 2 on OS X relies on the system python - 2.6 or whatever python happens to be in the path. Sublime 3 ships with python 3.3 on all platforms. edit: If you are asking about the Floobits plugin, ST 2 on OS X shells out to the system python (because of SSL).

>Sublime 3 ships with python 3.3 on all platforms.

So does that fix that issue he says in the end is "still open", about select etc not being present on some platforms?

(I don't have Windows or GUI Linux available to check).

Re: Sublime Text's Plugin API: It's Python, Sort Of

#8
post #7
post #3

Earlier quoted context omitted.

I believe only ST 2 on OS X relies on the system python - 2.6 or whatever python happens to be in the path. Sublime 3 ships with python 3.3 on all platforms. edit: If you are asking about the Floobits plugin, ST 2 on OS X shells out to the system python (because of SSL).

> Sublime 3 ships with python 3.3 on all platforms. So does that fix that issue he says in the end is "still open", about select etc not being present on some platforms? (I don't have Windows or GUI Linux available to check).

Importing select works in Sublime Text 3 on Windows. Unfortunately, many people still use ST2, since it's the default download on the Sublime Text website. It would make my life much easier if ST3 came out of beta.

Re: Sublime Text's Plugin API: It's Python, Sort Of

#9
post #8
post #7

Earlier quoted context omitted.

> Sublime 3 ships with python 3.3 on all platforms. So does that fix that issue he says in the end is "still open", about select etc not being present on some platforms? (I don't have Windows or GUI Linux available to check).

Importing select works in Sublime Text 3 on Windows. Unfortunately, many people still use ST2, since it's the default download on the Sublime Text website. It would make my life much easier if ST3 came out of beta.

Surely if they are devs they know they're not bound to the "default download".

I've been using ST3 dev builds for what, 2 years now? Rock solid all this time on OS X (with around 10 plugins). Only had one issue (high cpu load on search IIRC), that was corrected by going back to the ST3 beta for the 2-3 days it took for it to be fixed.

Re: Sublime Text's Plugin API: It's Python, Sort Of

#10

Glyph Lefkowitz warned about the dangers of embedding Python a long time ago: https://twistedmatrix.com/users/glyph/rant/extendit.html See also this comment of his on Advogato, which he indirectly referenced in the previous article: http://advogato.org/article/550.html#12

Interesting articles, though I'm not sure the critique applies here. It seems rather, ST2 ships with a separate and incomplete python environment. I don't think it 'embeds' python, does it?
Post reply on HN