Sublime Forum

Where are the built-in build systems located on Mac OS X?

#1

I want to edit one of the built-in build systems (Ruby) to make it work with Rbenv.
I tried overriding it by placing my own Ruby.sublime-build in ~/Library/Application Support/SublimeText 3/Packages/User/ but it wasn’t picked up.
How can I edit the built-in ones?
It’s very frustrating since it’s not mentioned anywhere where these files are located.
docs.sublimetext.info/en/latest/ … stems.html doesn’t mention it either.

0 Likes

#2

Hey there,

I never used a Mac, but on Windows they are in the main installation folder, under Packages. There should be a list of packages each dedicated to a specific language. The name should be like “Language.sublime-package”. You need to unzip the package you want by renaming it “Language.zip” and open it with “7.zip”. I don’t know if the zip compression exists on mac, but I am sure there is something similar. :smiley:

Then go ahead and change the build-system of that language and repack it and rename it to it’s original name and copy it back to it’s originating directory.

I can’t tell if the changes are lost when ST updates, but create a custom build system.

Greets Peter

1 Like

#3

Hi,

I am also looking for the location of the default build system on MacOSX. My goal is to actually copy the default build system for C++ and to create an custom one for it.

Looking at the Package directory I am not seeing the build files:

pwd

/Users/frichard/Library/Application Support/Sublime Text 3/Packages

ls -il

total 0K
13554640 drwxr-xr-x 41 frichard 479462976 1394 Apr 2 2013 GoSublime
13554358 drwxr-xr-x 19 frichard 479462976 646 Mar 30 2013 Package Control
13553384 drwxr-xr-x 9 frichard 479462976 306 Mar 30 2013 User

Thanks,

FR

0 Likes

#4

In ST3, all of the default files are kept in .sublime-package zip files, located in** ~/Library/Application Support/Sublime Text 3/Installed Packages** (I think, I’m not on my Mac at the moment). The easiest way to modify them is to use @skuroda’s excellent PackageResourceViewer plugin, available via Package Control. Browse through the README for instructions on how to use it. After installation, copy the contents of Sublime Text -> Preferences -> Package Settings -> PackageResourceViewer -> Settings-Default to Settings-User, and change the “single_command” setting to “false” to get all of the options. You can then open the Command Palette, type in prv, and pick the option you’d like to use.

0 Likes

#5

Solved it! :smile:

First, I had the same issue as frichard1974, only the packages I installed manually were visible in ~/Library/Application Support/Sublime Text 3/Packages and /Library/Application Support/Sublime Text 3/Installed Packages

~/Library/Application Support/Sublime Text 3/Packages $ ls
total 16
drwx------ 11 manuel staff 374B Nov 28 13:19 .
drwx------ 8 manuel staff 272B Dec 18 10:49 …
-rw-r–r--@ 1 manuel staff 6.0K Sep 14 2013 .DS_Store
drwxr-xr-x 17 manuel staff 578B Jul 19 2013 Alignment
drwxr-xr-x 20 manuel staff 680B Jul 19 2013 Markdown Preview
drwxr-xr-x 18 manuel staff 612B Jul 14 2013 Package Control
drwxr-xr-x 21 manuel staff 714B Jul 14 2013 SideBarEnhancements
drwxr-xr-x 9 manuel staff 306B Jul 14 2013 Theme - Cobalt2
drwxr-xr-x 2 manuel staff 68B Nov 28 13:19 Theme - Default
drwxr-xr-x 10 manuel staff 340B Jul 14 2013 Theme - Soda
drwx------ 19 manuel staff 646B Apr 10 11:12 User

~/Library/Application Support/Sublime Text 3/Installed Packages $ ls
total 928
drwx------ 12 manuel staff 408B Mar 17 15:13 .
drwx------ 8 manuel staff 272B Dec 18 10:49 …
-rw-r–r-- 1 manuel staff 19K Nov 28 13:16 AdvancedNewFile.sublime-package
-rw-r–r-- 1 manuel staff 34K Jul 15 2013 Better CoffeeScript.sublime-package
-rw-r–r-- 1 manuel staff 3.2K Jan 8 17:08 Gem Browser.sublime-package
-rw-r–r-- 1 manuel staff 8.6K Dec 2 11:52 Gherkin (Cucumber) Formatter.sublime-package
-rw-r–r-- 1 manuel staff 25K Feb 13 11:34 Git.sublime-package
-rw-r–r-- 1 manuel staff 37K Nov 28 13:19 GitGutter.sublime-package
-rw-r–r-- 1 manuel staff 4.4K Dec 5 22:25 Indent XML.sublime-package
-rw-r–r-- 1 manuel staff 90K Mar 17 15:13 JsFormat.sublime-package
-rw-r–r-- 1 manuel staff 3.6K Oct 19 18:11 LineEndings.sublime-package
-rw-r–r-- 1 manuel staff 217K Jul 16 2013 Sass.sublime-package

Using PackageResourceViewer I could create the Ruby package though: select “PackageResourceViewer: Open Resource”, then “Ruby”, type “build” and you should see “Ruby.sublime.build”. Open that file and save it, which will generate ~/Library/Application Support/Sublime Text 3/Packages/Ruby/Ruby.sublime-build. Then you can edit this file and it will be used as the built-in Ruby builder.

I think it’s not supposed to be that way, all packages should be visible in ~/Library/Application Support/Sublime Text 3/Packages/
Maybe reinstalling ST would help.

0 Likes