Re: Bug in code intelligence, is it possible to exclude directories?

John Locke <[email protected]> Tue, 03 Nov 2009 16:27:43 -0800
Newsgroups gmane.comp.ide.komodo.general
Message-ID <[email protected]>
Thanks for the response, and digging into this... Will try the
project-based file inclusion for the code intel...

Deleting that rogue character does appear to stop triggering the bug!

Thanks,
John Locke
http://freelock.com

-------- Original Message  --------
Subject: Re: [Komodo-discuss] Bug in code intelligence,  is it possible
to exclude directories?
From: Todd Whiteman <[email protected]>
To: John Locke <[email protected]>
Cc: [email protected]
Date: Tue 03 Nov 2009 03:24:26 PM PST
> John Locke wrote:
>   
>> I've got a file that seems to be causing an endless loop in Komodo IDE's
>> code intel module. It keeps trying to crawl the same file, thinks its
>> corrupt, and repeats, until eventually Komodo consumes available RAM and
>> starts bogging down.
>>
>> I've found the pystderr.log in the host name directory in my .komodoide
>> directory, and it's repeating this error over and over again:
>>
>> [2009-11-03 11:48:50,242] [WARNING] codeintel.db: database corruption
>> during 'MultiLangZone.get_buf_data': could not parse dbfile for
>> 'taxonomy_manager.admin.inc' blob: not well-formed (invalid token): line
>> 1, column 34290 (resolution: recover)
>>
>> The file it's breaking on is here:
>>
>> http://cvs.drupal.org/viewvc/drupal/contributions/modules/taxonomy_manager/taxonomy_manager.admin.inc?hideattic=0&revision=1.1.2.17.2.25&view=markup
>>
>>
>> ... so first off there's some sort of bug in the Code Intel that's
>> choking on this file.
>>
>>     
>
> Thanks for the report. This is a Komodo bug, which is triggered by a 
> strange character (0x10) in the taxonomy_manager.admin.inc file (line 
> 2264). Komodo's codeintel system uses XML files for storing the scanned 
> PHP data, but Komodo does not correctly escape the this 0x10 character, 
> which leads to an error upon trying to load this data.
>
> I've logged a Komodo bug on this problem here:
> http://bugs.activestate.com/show_bug.cgi?id=85176
>
>   
>> But in general, is there a way to blacklist particular files/directories
>> for code intelligence?
>>
>> I'm finding in a different project (using the Dojo toolkit) that code
>> intelligence crawls my build for hints, not my source code. Since my
>> build is packed Javascript, I'm getting code completion/hints with
>> obfuscated variable names and no comments. Would like to blacklist this
>> directory entirely, and have it crawl the unbuilt source only.
>>     
>
> No, Komodo does not offer a nice way to customize the files that are 
> scanned by the codeintel system, another bug on this here:
> http://bugs.activestate.com/show_bug.cgi?id=74765
>
> The way you can do this (partially) is to disable the Komodo codeintel 
> preference "Include all files and directories from the project base 
> directory", and then add all the directories you wish to be scanned 
> through the project's "Languages->PHP->PHP Directories" preferences.
>
> Cheers,
> Todd
> _______________________________________________
> Komodo-discuss mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss
>
> !DSPAM:4af0bbb8248231924119592!
>
>   


_______________________________________________
Komodo-discuss mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss