Live data from Hacker News

Turning Sublime Text into a Lightweight Python IDE

cewing.github.io

41–50 of 154 posts

Re: Turning Sublime Text into a Lightweight Python IDE

#41
post #25

Sublime Text comes with a great system for Package Control. [...] To install a plugin using Package Control, open the command palette with shift-super-P (ctrl-shift-P on Windows/Linux). The super key is command or ⌘ on OS X. When the palette opens, typing install will bring up the Package Control: Install Package command. Sublime doesn't actually come with Package Control and Package Control itself is a confusing usa…

True.. I have never bothered to find out how the ST community grew so much. It's a paid product and somehow people have built plugins for a package manager that is not even part of the core IDE. Does anyone know the history here?

I think it got really popular, especially in the Rails community, because of the flashy multi-cursor demos on the site. I believe it was the first CUA/mainstream editor with multiple cursors.

Re: Turning Sublime Text into a Lightweight Python IDE

#42
post #25

Sublime Text comes with a great system for Package Control. [...] To install a plugin using Package Control, open the command palette with shift-super-P (ctrl-shift-P on Windows/Linux). The super key is command or ⌘ on OS X. When the palette opens, typing install will bring up the Package Control: Install Package command. Sublime doesn't actually come with Package Control and Package Control itself is a confusing usa…

I always thought that was a little odd. Not sure why it's not just "preinstalled" already. I doubt the author of ST doesn't use plugins? If he wanted it to be optional he should make it opt-in as a default that you could take off if you didn't want it....

> Part of the reason is allowing it to have a different release cadence, but also to not default to making outbound network connections without a user opting in.

https://news.ycombinator.com/item?id=12553484

wbond is the guy behind Package Control and he also develops Sublime Text.

Re: Turning Sublime Text into a Lightweight Python IDE

#43
post #16

i'd just rather use pycharm. https://www.jetbrains.com/pycharm/

Completely agree. I can't use even the best editor if it doesn't provide basic navigation, and debugging functions. 20 years ago, people claimed that IDEs were bad, but now the situation have changed. PyCharm has almost everything that Sublime has, and even more, there's vim mode, which moved editing to a new level.

I totally agree PyCharm's navigation and debugging functionality are fantastic. That said, when I last tried it (about 2-3 years ago), my Python code ran incredibly slow. I have a relatively large but not huge Django based python project (~2M LOC with libraries), but with debugging enabled my Python code practically ground to a halt. It's possible I misconfigured the debugger, and I can't remember how long I spent trying to get it to work, but it was discouraging enough that I dropped it.

My debugging now is just logging.info and some fancier log aggregation tools, but still feels like the early 1990s.

Re: Turning Sublime Text into a Lightweight Python IDE

#45
post #25

Sublime Text comes with a great system for Package Control. [...] To install a plugin using Package Control, open the command palette with shift-super-P (ctrl-shift-P on Windows/Linux). The super key is command or ⌘ on OS X. When the palette opens, typing install will bring up the Package Control: Install Package command. Sublime doesn't actually come with Package Control and Package Control itself is a confusing usa…

True.. I have never bothered to find out how the ST community grew so much. It's a paid product and somehow people have built plugins for a package manager that is not even part of the core IDE. Does anyone know the history here?

For starters you can use it for free indefinitely. The package manager might not be in the core product, but I recall it was bought by Sublime so it's official.

Also a really really solid editor.

Re: Turning Sublime Text into a Lightweight Python IDE

#46
post #40
post #30

Earlier quoted context omitted.

I'm not really sure what it is, perhaps the authors of Sublime want to keep to a very basic minimal core and leave a lot of the other stuff as an exercise for the extension mechanism. VS Code seems to strike a good middle ground on this - it's all still a pile of JSON config files but the UI for managing it doesn't make you want to run away from home and become an itinerant chartered accountant.

Of course the creator of Package Control now works for the creator of Sublime Text and the install is automated from a menu item. I wouldn't be surprised if it gets integrated further, especially now that they've started to cleanup the UI and icon.

I hope you're right, it just seems like a very long way to go, given the starting point. You've got this:

http://i.imgur.com/xMiyCN4.png

But what you probably wanted was this:

http://i.imgur.com/x9JzYAU.png

Re: Turning Sublime Text into a Lightweight Python IDE

#47
post #41

Earlier quoted context omitted.

True.. I have never bothered to find out how the ST community grew so much. It's a paid product and somehow people have built plugins for a package manager that is not even part of the core IDE. Does anyone know the history here?

I think it got really popular, especially in the Rails community, because of the flashy multi-cursor demos on the site. I believe it was the first CUA/mainstream editor with multiple cursors.

Pretty sure you're thinking of TextMate. RailsCasts probably sold thousands of TextMate licenses, and DHH's screencasts thousands more.

No doubt some Rails devs use Sublime but it's nowhere near as popular as Vim.

Re: Turning Sublime Text into a Lightweight Python IDE

#48
> The final requirement for a reasonable IDE experience is to be able to follow a debugging session in the file where the code exists.

> There is no plugin for SublimeText that supports this. But there is a Python package you can install into the virtualenv for each of your projects that does it.

This drives me batty whenever I see "turn XYZ into an IDE for (foo)." The author of this post at least lists debugger integration as part of the IDE experience, but comparing against actual full fledged commercial / non-plugin-composite IDEs? I haven't seen one article for turning Atom/ST/Vim/etc into an "IDE" that comes close (edit: that is, close to a reasonable debugging experience, in an integrated way) capability-wise.

There's nothing wrong with taking that approach, but if you need to shim on GDB and use a plugin to just follow along in source (forget setting watches, gutter-click breakpoints, conditional breakpoints, etc., from Sublime Text), that's pretty definitively not integrated into Sublime.

Re: Turning Sublime Text into a Lightweight Python IDE

#49
post #25

Sublime Text comes with a great system for Package Control. [...] To install a plugin using Package Control, open the command palette with shift-super-P (ctrl-shift-P on Windows/Linux). The super key is command or ⌘ on OS X. When the palette opens, typing install will bring up the Package Control: Install Package command. Sublime doesn't actually come with Package Control and Package Control itself is a confusing usa…

True.. I have never bothered to find out how the ST community grew so much. It's a paid product and somehow people have built plugins for a package manager that is not even part of the core IDE. Does anyone know the history here?

I really have no issue with paying for it and have easily got my money's worth out of it. I just had some naive hope it might develop into something emacs-like (in terms of extensibility) but less crufty and it's mostly become less-than-emacs-like but just as crufty.

Re: Turning Sublime Text into a Lightweight Python IDE

#50
post #16

i'd just rather use pycharm. https://www.jetbrains.com/pycharm/

I was going between vim and sublime text for python code, and my team lead suggested pycharm. I was doubtful, but it makes alot of things so easy so I use it almost always for python code now. However like another person mentioned, the startup time can be painful. I just open it and leave it up to avoid that part.

If you're used to vim, you can also use vim key bindings in Pycharm and kind of get best of both worlds.
Post reply on HN