How to prevent Komodo from scanning certain directories?

Posted by gmtfn on 2011-12-11 12:28
Forums: Komodo discussion | OS: Windows 7

Komodo IDE wastes computer resources by scanning directories with source code I don't use in my projects, e.g. XAMPP/php/PEAR. Is there a way to disable this? I am currently using version 7 beta 2.

cgchoffman
ActiveState Staff
Mon, 2011-12-12 13:00

How are the folders registered in Komodo? Are they included in the PHP preferences? Or is this a project that includes your XAMPP folder?

You can't manually exclude folders from Code Intel scans. You're not asking to completely disable code scanning correct?

Edit:
You could try excluding folders you don't want scanned by:
-Right click project
-Properties->Properties
-Add ;/php/* to the end of the "Files and directories to exclude:"

gmtfn | Mon, 2011-12-12 14:06

I don't use the project feature. I don't want to be locked into a product. I just work with individual files.

> How are the folders registered in Komodo? Are they included in the PHP preferences?

I believe Komodo has learned about the PEAR folder from this path: C:\xampp\php\php.ini, which is what it wants to know in order to do syntax checking. Preferences->Languages->PHP

cgchoffman
ActiveState Staff
Mon, 2011-12-12 15:11

It's not necessary to include a php.ini file for syntax checking as Komodo supports that by default:
http://docs.activestate.com/komodo/7.0/editor.html#Linting

Unfortunately there is no way to exclude files from Code Intel scanning.

toddw
ActiveState Staff
Mon, 2011-12-12 15:28

Komodo uses the following paths:
http://support.activestate.com/node/7590

It's not possible (as of yet) to exclude system PHP folders, i.e. the ones that come from the php.ini file, though there is a Komodo enhancement request to do this:
http://bugs.activestate.com/show_bug.cgi?id=74765

Cheers,
Todd

gmtfn | Tue, 2011-12-13 10:22

Thanks. I even see myself in the cc list of that request :). Is this request going to get implemented reasonably soon? Apparently it's pretty popular.

toddw
ActiveState Staff
Tue, 2011-12-13 11:40

I cannot say if/when the request will be implemented. Code Intelligence is something we are continually improving in Komodo, and I would like to think that this should be something we can look into during Komodo 7.

Cheers,
Todd

gmtfn | Wed, 2011-12-14 23:45

I had to delete (move) PEAR folder in order to stop Komodo's hungry quest for files to scan.

I think Komodo already has enough features, so it's a good time to focus on stopping the abuse of the computer resources by Komodo's scanning things that don't need to be scanned. Version 7 is a good version to do it in, in my opinion.

cgchoffman
ActiveState Staff
Thu, 2011-12-15 10:03

Hi gmtfn

If you'd like, you can take a look at this FAQ and see what you can do with your own Komodo instance to increase efficientcy. This is a link about features in Komodo that use the most resource:
http://community.activestate.com/faq/how-improve-komodos-editing-perform...

-Carey

gmtfn | Thu, 2011-12-15 10:51

Thank you, Carey. I've taken a look at it. I still want to prevent Komodo from scanning files it doesn't need to be scanning. It puts extra wear on my hard disk and slows down things, and it's for no good reason at all. For example, I have no use for PEAR in any of my projects, so PEAR source code files shouldn't be scanned. This seems pretty basic to me. Do you disagree?

cgchoffman
ActiveState Staff
Fri, 2011-12-16 10:41

Hi gmtfn,

It's certainly a good idea, I do agree. Please file an enhancement requests here:
http://bugs.activestate.com/

That is the very best way to draw attention to a feature you would like changed.

-Carey

gmtfn | Fri, 2011-12-16 12:15

Carey, Todd has posted a link to an existing feature request above: http://bugs.activestate.com/show_bug.cgi?id=74765

cgchoffman
ActiveState Staff
Fri, 2011-12-16 12:41

Hey gmtfn,

That is good. You can post a comment on the bug to express your interests in the enhancement.