Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build system doesn't run on save if user settings are set to 0 #29

Open
danixland opened this issue Feb 15, 2016 · 4 comments
Open

build system doesn't run on save if user settings are set to 0 #29

danixland opened this issue Feb 15, 2016 · 4 comments

Comments

@danixland
Copy link

I've globally set the build_on_save to 0 in my user settings file, but I've added

"build_on_save": 1

in one of my projects, but still, whenever I hit the save shortcut, the file is saved but the build system doesn't trigger.

any clue on this?

@alexnj
Copy link
Owner

alexnj commented Feb 15, 2016

Is the file being saved having an extension that matches the regexp configured?

@danixland
Copy link
Author

thanks for your reply, yes, the file is .scss

@robgnyc
Copy link

robgnyc commented May 12, 2016

I'm having the same issue. Did you ever figure this out?
My user settings are:
{ "filename_filter": "\\.(sass|scss)$", "build_on_save": 0 }
And my project specific settings are:
{ "folders": [ { "path": "cg" } ], "build_on_save": 1 }

But it doesn't work.

@rwols
Copy link

rwols commented Mar 21, 2017

This seems to be ancient, but the correct way to do this is to put the relevant options in the "settings" dictionary of the .sublime-project file. e.g.

{
	"folders":
	[
		{
			"file_exclude_patterns":
			[
				".gitignore",
				".gitmodules"
			],
			"folder_exclude_patterns":
			[
				".git"
			],
			"path": "."
		}
	],
	"settings":
	{
		"ClangFormat":
		{
			"based_on_style": "File",
			"format_on_save": true
		},
		"build_on_save": 1,
		"filename_filter": "\\.(hpp|cpp)$",
		"tab_size": 4
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants