Save the following as Packages/User/Python_cmd. and need to compile code before it runs), or you just want to run it independently of Sublime, you'll need to make your own build system. Sublime Text is forgiving about the use of comments, but you will have to escape. If the code you're running doesn't play well with SublimeREPL (for instance, you're using C/C++/Java/etc. Your build file is invalid JSON, which is likely causing the error message. It allows you to transfer or run part or all of your code through the running REPL (you'll need to start one first). The easiest short-term solution is to get Package Control if you don't already have it, then install SublimeREPL. The same is true of other languages as well - Ruby's gets, Java's Scanner class, Node's readline class, etc. You can run arbitrary commands from the console by hitting Ctrl `.Īs documented in several SO questions, Sublime Text on its own cannot handle input via raw_input() or input(). ST2 has 2.6, while ST3 has 3.3, so if you write plugins you'll need to conform to those language specifications. Finally, in response to your comment, Sublime comes with a slightly stripped-down version of Python built-in. They're well-organized, pretty up-to-date, and cover a lot more ground than the "official" ones on. Second, just FYI, there's a fairly complete set of (unofficial) docs at. First off, since you're using a dev build, you must be a registered user (good!) and I'd recommend upgrading to 3053, the latest version, as newer is often better in terms of known issues being fixed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |