ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> komodo-discuss
komodo-discuss
Re: [Komodo-discuss] Bug in code intelligence, is it possible to exclude directories?
by Todd Whiteman other posts by this author
Nov 3 2009 3:24PM messages near this date
view in the new Beta List Site
[Komodo-discuss] Bug in code intelligence, is it possible to exclude directories? | Re: [Komodo-discuss] Bug in code intelligence, is it possible to exclude directories?
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_manage
r.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
Komodo-discuss@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss
Thread:
John Locke
Todd Whiteman
John Locke
John Locke

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved