This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 132388 - The indexer indexs only .php file
Summary: The indexer indexs only .php file
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on: 137734
Blocks:
  Show dependency tree
 
Reported: 2008-04-09 10:07 UTC by Petr Pisl
Modified: 2008-07-31 04:09 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch (2.72 KB, text/plain)
2008-07-28 22:37 UTC, rmatous
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2008-04-09 10:07:20 UTC
In the PHPIndexer there is code in isIndexable method, which returns true only for files with .php extension. It has to
be changed, because our mimeresolver recognizes also files with other extension as the php files.
Comment 1 Tomasz Slota 2008-04-09 17:21:45 UTC
Fixed by hardcoding a list of supported extensions and making a reference to it in PHPMimeResolver.xml.

http://hg.netbeans.org/release61/rev/a4f108473759
Comment 2 Petr Pisl 2008-06-11 17:01:32 UTC
I need to reopen the issue. The workaround doesn't work for extensions, which are added by user. We need to look at the
mimetype
Comment 3 Tomasz Slota 2008-06-18 14:29:29 UTC
I think this issue should be solved in the project infrastructure, reassigning
Comment 4 Petr Pisl 2008-06-18 16:14:49 UTC
This issue doesn't have anything with the php project. It has to be solved inside the indexing. The correct solution
will probably need some changes in mimetype api. 
Comment 5 rmatous 2008-07-28 22:37:42 UTC
Created attachment 65864 [details]
patch
Comment 6 Petr Pisl 2008-07-30 17:02:44 UTC
I have tested the patch and it seams that everything works. It doesn't influence the performance, which is good. I have
applied Radek's patch.
Comment 7 Quality Engineering 2008-07-31 04:09:40 UTC
Integrated into 'main-golden', available in build *200807310201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/926ea32a29f9
User: Petr Pisl <ppisl@netbeans.org>
Log: #132388 - The indexer indexs only .php file