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 186663 - PHP internal functions autocompletion doesn't work for files outside/without a project
Summary: PHP internal functions autocompletion doesn't work for files outside/without ...
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 4 votes (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-25 13:03 UTC by rozwell
Modified: 2012-04-12 10:42 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rozwell 2010-05-25 13:03:20 UTC
Autocompletion for standard php functions doesn't work when file is outside the project.
If no project is loaded - autocompletion doesn't work.
If a project is loaded and you open file(s) outside it - autocompletion doesn't work.
Comment 1 rmatous 2010-05-25 13:25:42 UTC
tomasi, please could you evaluate. Might be regression either in php.project or php.editor but looks like classpath problem
Comment 2 Tomas Mysik 2010-05-26 12:33:38 UTC
Problem on project's site found and fixed (will be pushed soon). However, there's still a problem on editor's site, for example:

<?php

    function notFound() {
    }
    
    microtime(); // CC works here
    notFo|       // no CC here

?>
Comment 3 rozwell 2010-05-26 15:04:12 UTC
I think it's not that important as internal functions but should remain on todo list.
Thank you for fast response.
Comment 4 Tomas Mysik 2010-05-27 09:23:28 UTC
Project's part fixed, reassigning to the editor.
http://hg.netbeans.org/web-main/rev/6bc1d6a24f5a
Comment 5 Quality Engineering 2010-05-28 08:01:43 UTC
Integrated into 'main-golden', will be available in build *201005280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6bc1d6a24f5a
User: Tomas Mysik <tmysik@netbeans.org>
Log: Project's part of #186663: PHP internal functions autocompletion doesn't work for files outside/without a project

Editor's part is still to do.
Comment 6 Filip Zamboj 2010-09-15 12:07:01 UTC
batch reassigning
Comment 7 Petr Pisl 2011-09-27 12:39:20 UTC
Reproducible in 7.1 as well.
Comment 8 Tomas Mysik 2012-04-12 10:35:16 UTC
Taking over.
Comment 9 Tomas Mysik 2012-04-12 10:42:30 UTC
Fixed by recent changes in IncludePathClassPathProvider (just verified, works for me properly in daily build).

Thanks for reporting.

Product Version: NetBeans IDE Dev (Build 20120412-9eb622838cd5)
Java: 1.6.0_31; Java HotSpot(TM) 64-Bit Server VM 20.6-b01
System: Linux version 3.0.0-17-generic running on amd64; UTF-8; cs_CZ (nb)