Home Download Buy Blog Forum Support

Project-specific settings don't seem to be working

Project-specific settings don't seem to be working

Postby jf317820 on Thu Jun 21, 2012 2:59 am

Hi,

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

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


But, with the project loaded, when I run the following command:
Code: Select all
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!
jf317820
 
Posts: 1
Joined: Thu Jun 21, 2012 2:55 am

Re: Project-specific settings don't seem to be working

Postby gremlin5906 on Fri Jun 29, 2012 6:39 pm

I'm also trying to use project level settings overrides in a package. I would very much appreciate a solution.
gremlin5906
 
Posts: 2
Joined: Fri Jun 29, 2012 6:38 pm

Re: Project-specific settings don't seem to be working

Postby gremlin5906 on Fri Jun 29, 2012 6:52 pm

Ha! Figured it out:

settings = sublime.active_window().active_view().settings()
gremlin5906
 
Posts: 2
Joined: Fri Jun 29, 2012 6:38 pm


Return to Plugin Development

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 6 guests