Home Download Buy Blog Forum Support

Ignored packages setting in project ignored

Ignored packages setting in project ignored

Postby rogergl27 on Thu Jul 19, 2012 8:22 pm

I would like to ignore the RubyMotion package for non RubyMotion projects. I tried:

"settings":
{
"tab_size": 8,
"font_size": 13,
"ignored_packages":
[
"Vintage",
"RubyMotion Autocomplete"
]
}

in my sublime-project file. But that does not work.

Is there another solution ?

Regards
Roger
rogergl27
 
Posts: 9
Joined: Thu Jul 12, 2012 3:59 pm

Re: Ignored packages setting in project ignored

Postby Xavura on Thu Jul 19, 2012 8:23 pm

You're trying to ignore a package called "RubyMotion Autocomplete"...

Code: Select all
[
"Vintage",
"RubyMotion",
"Autocomplete"
]
Xavura
 
Posts: 19
Joined: Sat Jul 14, 2012 4:40 pm

Re: Ignored packages setting in project ignored

Postby rogergl27 on Thu Jul 19, 2012 9:42 pm

>>You're trying to ignore a package called "RubyMotion Autocomplete"...<<
-----
Yes I know. Thats exactly the package I'm trying to ignore. But it does not work. (BTW: It works if I put the config in the user settings file).

Regards
Roger
rogergl27
 
Posts: 9
Joined: Thu Jul 12, 2012 3:59 pm

Re: Ignored packages setting in project ignored

Postby Xavura on Thu Jul 19, 2012 10:00 pm

Ah I see! The way you worded it, I thought you were trying to ignore a package called "RubyMotion". In this day and age one must assume idiocy by default, nothing personal.

By the way it is recommended that you always use the "User" version of settings files as otherwise you will lose your changes on upgrade.
Xavura
 
Posts: 19
Joined: Sat Jul 14, 2012 4:40 pm

Re: Ignored packages setting in project ignored

Postby rogergl27 on Thu Jul 19, 2012 10:18 pm

>>By the way it is recommended that you always use the "User" version of settings files as otherwise you will lose your changes on upgrade.<<
============================
But how would that help ? I would like to disable the "RubyMotion Autocomplete" package for Rails projects and enable it fur RubyMotion projects. Isn't that the use case for the project configuration ?

Regards
Roger
rogergl27
 
Posts: 9
Joined: Thu Jul 12, 2012 3:59 pm

Re: Ignored packages setting in project ignored

Postby Xavura on Thu Jul 19, 2012 10:37 pm

Didn't realise you were talking about the settings in .sublime-project files, sorry. I should learn to read, looks like I'm the idiot. :) Of course you won't lose those settings on upgrade.

You can't override any old setting from a .sublime-project file, only certain ones. It is a problem for me too as I want to be able to override settings from a Package on a per-project basis.

One would think that you could override any setting but it doesn't work that way. Perhaps you should comment on my related issue, on UserVoice, or file another issue. I think this would be a great feature.
Xavura
 
Posts: 19
Joined: Sat Jul 14, 2012 4:40 pm

Re: Ignored packages setting in project ignored

Postby Verhaeg on Fri Oct 25, 2013 4:10 pm

This is kinda old and IMHO one huge feature that would help users a lot

I also have some packages/settings that I want to override based on which project I'm working on.. if that was possible based on project or at least based on workspace, it would already help a lot.

Does anyone knows if any package can change user defined configuration? one could create a package that reads the project file and disable/enable the packages.
I know that Package Control can do this already.. so it seems feasible, I'm going to send a request to Will Bond on that as I think it makes perfect sense for his package control!

In the mean time, if anyone wants to give it a shot on this, it would be a huge success :D
Verhaeg
 
Posts: 12
Joined: Thu May 16, 2013 1:33 pm
Location: São Carlos / SP - Brasil

Re: Ignored packages setting in project ignored

Postby wbond on Fri Oct 25, 2013 4:19 pm

Packages are global to Sublime Text. They apply to every window and every file. It would be extremely hard to unload plugins from memory in a sane when when switching tabs in a window (different files may or may not be part of a project).

That completely ignores the fact that code from plugins could be running in threads - so Sublime Text would have to try and guess what threads are things that should keep going and which ones are ones that should be stopped. Generically trying to handle complex situations like this would be a support nightmare, and it would probably never work the way users wanted it to.

In short, I wouldn't expect to see project-specific package loading ever. Instead, ideally packages should be written in such a way that they do not become intrusive for other types of projects. Sometimes, however, this can be hard or impossible.
wbond
 
Posts: 528
Joined: Mon Feb 28, 2011 5:33 am


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 24 guests