Live data from Hacker News

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

news.floobits.com

41–46 of 46 posts

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

#41

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

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

I'm getting the feeling that these days anything a "ninja coder" has written on a Mac is assumed "good" because Mac is "Unix" and therefore the code "has" to be portable.

Is there something about the Mac culture which leads to less considerations about other environments?

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

#42
post #16
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…

> This is another reason for Jon to release ST as an open source project. I'd be content with source available to licensed users- I've already sunk money into it, why not bug fixes?

Then we couldn't implement new features?

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

#43
post #38

Earlier quoted context omitted.

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...

Originally, our plugin just used the Python bundled with Sublime Text. Only after discovering these bugs did we add work-arounds that used the system Python.

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

#44
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.

This whole story seems like pretty poor form. You based your business, in part, on a closed-source product, failed to test your multi-platform product on... any of the other platforms you planned on releasing it for, and then wrote up a lengthy blog post blaming the author of same closed-source product for failing to address your pet issue, as if your business being dependent upon it being fixed should somehow be his concern.

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

#45
post #23

Earlier quoted context omitted.

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!

Curious, what are the other two things? :-)

I pretty much don't consider any installation of Sublime on a new machine as "complete" until it also has Package Control.

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

#46

Earlier quoted context omitted.

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!

Curious, what are the other two things? :-) I pretty much don't consider any installation of Sublime on a new machine as "complete" until it also has Package Control.

One is almost always multi-cursors (together with regex search).

The other depends on the person. Usually one of [CMD-O + select directory, CMD-R, CMD-T]

Post reply on HN