Home Download Buy Blog Forum Support

SublimeLinter settings get deleted on upgrade

SublimeLinter settings get deleted on upgrade

Postby nickcw123 on Thu Aug 09, 2012 12:59 pm

Hi

I am using Sublimelinter mainly for python.

In the file

C:\Documents and Se...\Sublime Text 2\Sublime Text 2.0.1\Data\Packages\SublimeLinter\SublimeLinter.sublime-settings

I update the pep8_ignore section which hides problems I am not concerned about.

The trouble is every time SublimeLinter is updated (this happens automatically and quite often) a new settings file replaces my file removing my pep8_ignore list.

Is there a way of making the pep8_ignore list stay when the plugin is upgraded.

Thanks for your help.

Nick
nickcw123
 
Posts: 8
Joined: Tue Feb 07, 2012 2:49 pm

Re: SublimeLinter settings get deleted on upgrade

Postby C0D312 on Thu Aug 09, 2012 1:08 pm

Default settings are always overridden. That's why you should put all your changes in the user settings file.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: SublimeLinter settings get deleted on upgrade

Postby nickcw123 on Thu Aug 09, 2012 1:25 pm

C0D312 wrote:Default settings are always overridden. That's why you should put all your changes in the user settings file.


How do I do that?
nickcw123
 
Posts: 8
Joined: Tue Feb 07, 2012 2:49 pm

Re: SublimeLinter settings get deleted on upgrade

Postby C0D312 on Thu Aug 09, 2012 1:30 pm

Preferences > Package Settings > SublimeLinter > Settings - User
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: SublimeLinter settings get deleted on upgrade

Postby nickcw123 on Thu Aug 09, 2012 1:48 pm

C0D312 wrote:Preferences > Package Settings > SublimeLinter > Settings - User


Thanks for the link to the file. I have restored the default settings to how it was and updated my user settings file but it does not seem to be working.

The ignore list is not being seen.

My user settings file looks like this...
Code: Select all
{
   "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
   "dictionary": "Packages/Language - English/en_GB.dic",
   "font_size": 12.0,
   "font_face": "Courier New",

   "translate_tabs_to_spaces": true,


    "pep8_ignore":
    [
        "E501","W293","E225","E231","E302","E261","W291","E221","E303"
    ]   
}

nickcw123
 
Posts: 8
Joined: Tue Feb 07, 2012 2:49 pm

Re: SublimeLinter settings get deleted on upgrade

Postby nickcw123 on Mon Aug 20, 2012 1:21 pm

Does anybody know how to get user settings to work properly or are they broken for my scenario?
nickcw123
 
Posts: 8
Joined: Tue Feb 07, 2012 2:49 pm

Re: SublimeLinter settings get deleted on upgrade

Postby fizzicist on Mon Aug 20, 2012 4:14 pm

nickcw123 wrote:Does anybody know how to get user settings to work properly or are they broken for my scenario?


I think you need to put the SublimeLinter settings into a SublimeLinter.sublime-settings file in your User Packages directory (instead of in Preferences.sublime-settings). That User Package file should survive any updates to the main package.

When I added the following to a SublimeLinter.sublime-settings file, it worked.

Code: Select all
"pep8_ignore":
    [
        "E501","W293","E225","E231","E302","E261","W291","E221","E303"
    ]


I did find that I need to force the linter into firing. Making an edit on the file (or restarting) caused the items to disappear as needed.
fizzicist
 
Posts: 4
Joined: Thu Aug 11, 2011 3:53 am

Re: SublimeLinter settings get deleted on upgrade

Postby nickcw123 on Tue Aug 21, 2012 9:57 am

Thanks fizzicist that has solved the problem.
nickcw123
 
Posts: 8
Joined: Tue Feb 07, 2012 2:49 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 23 guests