Sublime Forum

Project-specific settings don't seem to be working

#1

Hi,

I have a .sublime_project file in my project root that contains the following:

{
	"folders":
	
		{
			"path": "/Users/josephferraro/Development/st/roooo"
		}
	],
	"settings": 
	{
		"my_project_setting" : "foobar"
	}
}

But, with the project loaded, when I run the following command:

print sublime.active_window().active_view().settings().get('my_project_setting')

the console prints “None”. What’s more confounding is this seemed to be working for quite some time and now seems to have mysteriously stopped working.

Am I missing something?

Thanks!

0 Likes

#2

I’m also trying to use project level settings overrides in a package. I would very much appreciate a solution.

0 Likes

#3

Ha! Figured it out:

settings = sublime.active_window().active_view().settings()

0 Likes