Sublime Forum

Build System Not Saving/Showing New Build

#1

Hi all,

First post here, but I have an issue I hope you can help me with.

I’m using Sublime Text 2.0.2 on Mac OS X 10.9.1 and I’m trying to add a PHP build system.

I go to Tools > Build System > New Build System…

add and save,

{
“cmd”: “php”, “-l”, “$file”]
}

to /Users/brett/builds/php.sublime-build.

I go back to Tools > Build System and don’t see ‘php’ listed.

I’ve tried this with different file names, saving at different locations and looking at different tutorials, including restarting Sublime Text and my machine, and no matter what, no error appears, but neither does ‘php’ under Tools > Build System. I’ve looked in View > Show Console and nothing is stated there either that could be a related error. I also tried “/usr/bin/php” rather than “php”, but that doesn’t seem to make a difference.

I’ve tried following,

joeybaker.tumblr.com/post/730401 … ime-text-2
pixafy.com/blog/2013/06/subl … es-part-2/
tutsplus.com/lesson/custom-builds/

and still nothing seems to work when saving the new build.

I’ve Googled and found no related issue. Maybe my googlfu is zero today, or maybe I’m the only one experiencing this.

Anyone know what’s going on? Thanks.

0 Likes

#2

Key part of the second link:

You need to keep it in your User folder.

0 Likes

#3

I’ve also saved the file as /Users/brett/php.sublime-build and it still doesn’t appear under Tools > Build System

0 Likes

#4

That’s your OS user folder.

When you click on New Build system then go to save, it should save in the correct folder if you don’t navigate away from it.

The folder you need is your ST “User” folder not the OS “Users” folder.

In OS X it’s located here: ~/Library/Application Support/Sublime Text 2/Packages/User

But again, if you don’t mess with where it tries to save, it should already be at that folder.

0 Likes

#5

[quote=“subhaze”]That’s your OS user folder.

When you click on New Build system then go to save, it should save in the correct folder if you don’t navigate away from it.

The folder you need is your ST “User” folder not the OS “Users” folder.

In OS X it’s located here: ~/Library/Application Support/Sublime Text 2/Packages/User

But again, if you don’t mess with where it tries to save, it should already be at that folder.[/quote]

That was exactly it. When I went to save the untitled.sublime-build file, it seemed to try and go to that folder and kicked me back to /Users/brett by default. I couldn’t access ~/Library from that dialogue either. I had to create a shortcut in the sidebar to ~/Library and then try again, then navigate to that folder you told me about. When I saved my file as PHP-Lint.sublime-build there, it finally worked.

Thanks so much.

Now I wonder why I had this issue in the first place… nothing looks out of the ordinary in my User Preferences,

[quote]{
“auto_complete”: false,
“color_scheme”: “Packages/Theme - Spacegray/base16-ocean.dark.tmTheme”,
“email”: "example@example.com",
“font_face”: “Source Code Pro Light”,
“font_size”: 17,
“ignored_packages”:

	"Vintage"
],
"open_files_in_new_window": false,
"product_key": "7314cc-ed65b4-b06216-b0ea2d-33d7ac",
"tab_completion": false,
"theme": "Spacegray.sublime-theme",
"word_wrap": false,
"wrap_width": 80,
"show_panel_on_build": true

}
[/quote]

0 Likes

#6

Thanks so much!
It seems like for the new versions of mac, Mac OS X, I need to save the build in Sublime’s own package folder rather than the default ‘user’ folder. This helped a lot :slight_smile:

0 Likes