Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Apps and Programs
How to configure Sublime Text -- can't get it to Build
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Raz0rEdge" data-source="post: 1841357" data-attributes="member: 110816"><p>Apologies, I actually tried what I told you to try and there is an issue with quoting, so I've fixed that and actually tested it as well. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>The proper code is</p><p>[CODE]</p><p>{</p><p> "cmd": ["/usr/local/bin/python3", "-u", "$file"],</p><p> "file_regex": "^[ ]*File '(…*?)', line ([0-9]*)",</p><p> "selector": "source.python"</p><p>}</p><p>[/CODE]</p><p></p><p>Things need to be in double quotes and not single quotes. These custom build system end up in ~/Library/Application Support/Sublime Text 3/Packages/User and that's totally fine.</p><p></p><p>I save this as myPython and chose that for my file and it worked as expected. With the single quotes I had initially suggested, i just got a "No build system" message in the bottom.</p><p></p><p>[ATTACH=full]31003[/ATTACH]</p></blockquote><p></p>
[QUOTE="Raz0rEdge, post: 1841357, member: 110816"] Apologies, I actually tried what I told you to try and there is an issue with quoting, so I've fixed that and actually tested it as well. :) The proper code is [CODE] { "cmd": ["/usr/local/bin/python3", "-u", "$file"], "file_regex": "^[ ]*File '(…*?)', line ([0-9]*)", "selector": "source.python" } [/CODE] Things need to be in double quotes and not single quotes. These custom build system end up in ~/Library/Application Support/Sublime Text 3/Packages/User and that's totally fine. I save this as myPython and chose that for my file and it worked as expected. With the single quotes I had initially suggested, i just got a "No build system" message in the bottom. [ATTACH=FULL]31003[/ATTACH] [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
How to configure Sublime Text -- can't get it to Build
Top