Live data from Hacker News

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

news.floobits.com

31–40 of 46 posts

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

#31
post #9
post #8

Earlier quoted context omitted.

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.

I'm in the same boat. I use ST3 as my primary editor and it's been quite stable.

The ST2 users are part of a significant chunk of developers who just use defaults. They use the default shell, default themes, default mail/calendar/IM client, etc. They don't toolsmith. Their motto is, "If it ain't broke, don't fix it."

Considering the annoyance of dealing with unstable software, I can't blame them... much.

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

#32
post #18

Package Control has patched these two module issues for a while, but I figured I'd give some details for those that are interested: Sublime Text 2 on Windows has an error when importing select. It isn't that Jon didn't include select, but rather there seems to be an issue importing the select.pyd from the folder that sublime_text.exe is located in, with Python 2.6. In fact, Python 2.6 on Windows has all sorts of issu…

Thanks a lot for this enlightening comment and for your fantastic work on Package Control. Without your work Sublime would be half as great, I feel.

I encourage everyone who paid for Sublime, a fantastic piece of software that certainly deserves it, to also donate to Package Control.

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

#33
post #23

Earlier quoted context omitted.

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?

Yes, Sublime Text embeds Python. The Python interpreter is initialized by the Sublime Text binary. The issues that Floobits ran into were some of the edge-cases related to distributing a compiled version of Python to various operating systems. I wrote a top-level comment on this page about how Package Control patches these issues.

Package control is usually one of the first three things I show to people new to Sublime. It's the best damn plugin system I've ever seen. Thank you for your work, Sir!

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

#35
post #15

So... shipped multiplatform code without testing it on Windows and Linux?

We haven't had cross-platform issues with Atom, Neovim, Emacs, or IntelliJ. Sublime Text is the only editor we've had to build these workarounds for.

So you haven't tested those either?

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

#36
post #15

So... shipped multiplatform code without testing it on Windows and Linux?

We haven't had cross-platform issues with Atom, Neovim, Emacs, or IntelliJ. Sublime Text is the only editor we've had to build these workarounds for.

protip: this is not the right response.

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

#37

Wait. Who in the hell releases something on multiple platforms without testing those platforms a single time?! O_o Multiple platform support has always, ALWAYS, required additional work on every project I've ever worked on. Often significant amounts.

This is what surprised me too!

That's just asking for problems.

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

#38

Wait. Who in the hell releases something on multiple platforms without testing those platforms a single time?! O_o Multiple platform support has always, ALWAYS, required additional work on every project I've ever worked on. Often significant amounts.

When developing a Chrome extension or Firefox add-on or Greasemonkey script, do you test it on Windows, OS X, and Linux?

Sublime Text is the only editor we've had to build platform-specific workarounds for. Atom, Emacs, Neovim, IntelliJ and ilk (PyCharm, WebStorm, etc)... none of them have these sorts of bugs. (They have other bugs, but they're consistent across platforms.) Comments such as, "You didn't test it on every platform?!" are succumbing to hindsight bias.

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

#39
post #13

This is another reason for Jon to release ST as an open source project. The editor is extremely polished at this point, and now only new features and niche issues like Python modules should be added to the core codebase. I imagine that since ST is no longer growing as it was years ago, the future money flow is relatively insignificant. Atom may have more momentum and plugins than Sublime right now, but since the core…

I've been using both Atom and Sublime Text 3 "in anger" over the last two months. As good as Atom has become now that it has reached 1.x, I find that the editor I turn to is Sublime. It just works. subl . and poof, it's up in a directory atom . 7 or 8 seconds later it's partly up... I bought ST2 some time ago, and I'd buy ST3 if he pulled the trigger and moved it out of beta... But not if it truly is abandon-ware. I'…

I give Atom a shot once in a while. Had week long atom periods 3-4 times now, always went back to ST3. However, this time i've been on it for a month or so. Haven't had a big complaint other that the boot time.

I think it's gonna start replacing ST as daily driver for a lot of people with this development pace.

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

#40
post #38

Wait. Who in the hell releases something on multiple platforms without testing those platforms a single time?! O_o Multiple platform support has always, ALWAYS, required additional work on every project I've ever worked on. Often significant amounts.

When developing a Chrome extension or Firefox add-on or Greasemonkey script, do you test it on Windows, OS X, and Linux? Sublime Text is the only editor we've had to build platform-specific workarounds for. Atom, Emacs, Neovim, IntelliJ and ilk (PyCharm, WebStorm, etc)... none of them have these sorts of bugs. (They have other bugs, but they're consistent across platforms.) Comments such as, "You didn't test it on ev…

But you said you were hooking into the OS python modules...
Post reply on HN